projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db961c
)
DataObjects/Group_Rights.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 8 Nov 2010 02:49:16 +0000
(10:49 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 8 Nov 2010 02:49:16 +0000
(10:49 +0800)
DataObjects/Group_Rights.php
patch
|
blob
|
history
diff --git
a/DataObjects/Group_Rights.php
b/DataObjects/Group_Rights.php
index
5020641
..
3787fd3
100755
(executable)
--- a/
DataObjects/Group_Rights.php
+++ b/
DataObjects/Group_Rights.php
@@
-121,6
+121,7
@@
class Pman_Core_DataObjects_Group_Rights extends DB_DataObject
}
$ar = (array)json_decode(file_get_contents($fn));
if (empty($ar)) {
+ // since these are critical files.. die'ing with error is ok.
die("invalid json file: " . $fn);
}
// echo '<PRE>';print_r($ar);