PHP8 fix
authorAlan <alan@roojs.com>
Wed, 19 Jul 2023 04:54:06 +0000 (12:54 +0800)
committerAlan <alan@roojs.com>
Wed, 19 Jul 2023 04:54:06 +0000 (12:54 +0800)
JsCompile.php

index 9025334..089db58 100644 (file)
@@ -262,7 +262,7 @@ class Pman_Core_JsCompile  extends Pman
         
         $cmd = "$pg roojspacker";
         $res = `$cmd`;
-        $out = trim($res);
+        $out = empty($res) ? '' : trim($res);
         if (strlen($out) > 0) {
             echo '<!--  onther process is compiling compile. -->';
             return false;