rabin 1 year ago
parent
commit
e5326c11e4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      vendor/dever-main/framework/src/Dever/Output/Export.php

+ 4 - 2
vendor/dever-main/framework/src/Dever/Output/Export.php

@@ -248,9 +248,11 @@ class Export
         } elseif (is_numeric($param)) {
         } elseif (is_numeric($param)) {
             $result['code'] = $param;
             $result['code'] = $param;
             $param = array();
             $param = array();
-        } elseif (is_array($msg) && isset($msg['code']) && isset($msg['msg'])) {
+        } elseif (is_array($msg) && isset($msg['code'])) {
             $result['code'] = $msg['code'];
             $result['code'] = $msg['code'];
-            $msg = $msg['msg'];
+            if (isset($msg['msg'])) {
+                $msg = $msg['msg'];
+            }
         } else {
         } else {
             $result['code'] = 1;
             $result['code'] = 1;
         }
         }