Commit ab853c31 authored by GROSS-AMBLARD David's avatar GROSS-AMBLARD David
Browse files

Fixes small bug on profile when undefined. Default value is now 2 (sometimes).

parent 79d8c757
......@@ -28,6 +28,10 @@
$stmt->execute();
$result =$stmt->setFetchMode(PDO::FETCH_ASSOC);
$line=$stmt->fetch();
if (!$line){
$line=array();
$line["availability"]=2;
}
debug((int)$line["availability"]);
if((int)$line["availability"]>250){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment