From: Alan Date: Wed, 19 Jul 2023 04:54:06 +0000 (+0800) Subject: PHP8 fix X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=685c8ef46960afbe475b5ec45b1284058245c6cd PHP8 fix --- diff --git a/JsCompile.php b/JsCompile.php index 90253343..089db58d 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -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 ''; return false;