fixed locked
[Pman.Base] / Pman / Roo.php
index 35869a1..ee0e571 100644 (file)
@@ -49,8 +49,7 @@ class Pman_Roo extends Pman
         Pman_Core_RooPostTrait,
         Pman_Core_RooJsonOutputTrait;
     */
-    
-    /**
+     /**
      * if set to an array (when extending this, then you can restrict which tables are available
      */
     var $validTables = false; 
@@ -1596,7 +1595,8 @@ class Pman_Roo extends Pman
         }
         $tab = str_replace('/', '',$tab); // basic protection??
         
-        $pm = HTML_FlexyFramework::get()->Pman;
+        $ff = HTML_FlexyFramework::get();
+        $pm = isset($ff->Pman) ? $ff->Pman : array();
         
         if (isset($pm['roo_alias'])) {
             $map = array_flip($pm['roo_alias']);