projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe40036
)
DataObjects/Group_Rights.php
author
Alan Knowles
<alan@akbkhome.com>
Mon, 8 Nov 2010 02:47:46 +0000
(10:47 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 8 Nov 2010 02:47:46 +0000
(10:47 +0800)
DataObjects/Group_Rights.php
patch
|
blob
|
history
diff --git
a/DataObjects/Group_Rights.php
b/DataObjects/Group_Rights.php
index
e7aeed7
..
5020641
100755
(executable)
--- a/
DataObjects/Group_Rights.php
+++ b/
DataObjects/Group_Rights.php
@@
-120,6
+120,9
@@
class Pman_Core_DataObjects_Group_Rights extends DB_DataObject
continue;
}
$ar = (array)json_decode(file_get_contents($fn));
+ if (empty($ar)) {
+ die("invalid json file: " . $fn);
+ }
// echo '<PRE>';print_r($ar);
foreach($ar as $k=> $perm) {
if ($k[0] == '/') {