Skip to content

Commit 8436294

Browse files
committed
Merge branch '5.1.x' into 5.2.x
2 parents 3563522 + e56251c commit 8436294

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/baser-core/src/Utility/BcUtil.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ public static function urlencode($value)
780780
*/
781781
public static function isConsole()
782782
{
783+
if(!isset($_ENV['IS_CONSOLE'])) {
784+
$_ENV['IS_CONSOLE'] = (php_sapi_name() === 'cli');
785+
}
783786
return (bool)$_ENV['IS_CONSOLE'];
784787
}
785788

0 commit comments

Comments
 (0)