load_data return allways, all exit() calls removed, all load_data calls are protected
[brisk.git] / web / index.php
index ee4e791..90191d5 100644 (file)
@@ -238,7 +238,10 @@ function main()
       $is_table = FALSE;
       $sem = Room::lock_data();
       log_main("lock Room");
-      $room = Room::load_data();
+      if (($room = Room::load_data()) == FALSE) {
+          log_crit("load_data failed");
+          exit();
+      }
       $curtime = time();
       
       /* Actions */