projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load_data return allways, all exit() calls removed, all load_data calls are protected
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
ee4e791
..
90191d5
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-238,7
+238,10
@@
function main()
$is_table = FALSE;
$sem = Room::lock_data();
log_main("lock Room");
$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 */
$curtime = time();
/* Actions */