includes/pageutils.php
changeset 582 a38876c0793c
parent 536 218a627eb53e
child 593 4f9bec0d65c1
--- a/includes/pageutils.php	Sun Jun 22 18:13:59 2008 -0400
+++ b/includes/pageutils.php	Tue Jun 24 23:37:23 2008 -0400
@@ -1977,7 +1977,14 @@
   public static function acl_json($parms = '{ }')
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
-    $parms = enano_json_decode($parms);
+    try
+    {
+      $parms = enano_json_decode($parms);
+    }
+    catch ( Zend_Json_Exception $e )
+    {
+      $parms = array();
+    }
     $ret = PageUtils::acl_editor($parms);
     $ret = enano_json_encode($ret);
     return $ret;