Pman.php
[Pman.Base] / Pman.php
index 275f510..8d432c6 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -177,23 +177,26 @@ class Pman extends HTML_FlexyFramework_Page
         
         // the modules call just lists the modules
         $enabled =  array('Core' => true);
-        $am = !empty($this->appModules) ? explode(',',  $this->appModules) : array();
+         $am = !empty($this->appModules) ? explode(',',  $this->appModules) : array();
         foreach($am as $k) {
             if (strpos( $k ,'.') ) {
                 continue;
             }
             $enabled[$k] = true;
         }
-        $disabled =  explode(',', $this->appDisable ? $this->appDisable: '');
+        
+        
+        $disabled =  !empty($this->appDisable) ?  explode(',', $this->appDisable) : array();
         foreach($disabled as $k) {
             if ( strpos( $k ,'.') ) {
                 continue;
             }
             if (isset($enabled[$k])) {
                 unset($enabled[$k]);
-            }
-            
+            }   
         }
+         echo '<PRE>';       var_Dump($enabled);
+
         return array_keys($enabled); 
     }