فهرست منبع

#4841 manage command line script

Alex Trofimov 1 سال پیش
والد
کامیت
d357bce3b6
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      scripts/manage.php

+ 3 - 2
scripts/manage.php

@@ -153,7 +153,6 @@ class BxDolManageCmd
                 ), $sErr);
                 ), $sErr);
             } catch (Exception $e) {
             } catch (Exception $e) {
                 $this->finish($this->_aReturnCodes['db connect failed']['code'], $this->_aReturnCodes['db connect failed']['msg'] . $e->getMessage());
                 $this->finish($this->_aReturnCodes['db connect failed']['code'], $this->_aReturnCodes['db connect failed']['msg'] . $e->getMessage());
-                exit;
             }
             }
         }
         }
     }
     }
@@ -177,7 +176,9 @@ class BxDolManageCmd
 
 
     function _parseModules($s) 
     function _parseModules($s) 
     {
     {
-        $a = explode(',',trim($s));
+        if (!$s)
+            return [];
+        $a = explode(',', trim($s));
         foreach ($a as $k => $v)
         foreach ($a as $k => $v)
             $a[$k] = trim($v);
             $a[$k] = trim($v);
         return $a;
         return $a;