From d1cf87217326754273532a84301a3af860aa8fff Mon Sep 17 00:00:00 2001 From: "ncomputers.org" Date: Sat, 28 Oct 2017 20:51:11 -0500 Subject: [PATCH] Replaced warning with error --- server/lib/classes/aps_installer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/classes/aps_installer.inc.php b/server/lib/classes/aps_installer.inc.php index 9b601d90b3..b2be236fa1 100644 --- a/server/lib/classes/aps_installer.inc.php +++ b/server/lib/classes/aps_installer.inc.php @@ -559,7 +559,7 @@ class ApsInstaller extends ApsBase $shell_ret_str = implode("\n", $shell_ret); // Although $shell_retcode might be 0, there can be PHP errors. Filter them: - if(substr_count($shell_ret_str, 'Warning: ') > 0) $shell_retcode = 1; + if(stripos($shell_ret_str,'error: ')!==false)$shell_retcode=1; // If an error has occurred, the return code is != 0 if($shell_retcode != 0) throw new Exception($shell_ret_str); -- GitLab