mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
Fix message() function when executed in CLI
This commit is contained in:
parent
70bd442bb0
commit
8de8ad13bf
@ -14,6 +14,15 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
function message($message, $type, $return)
|
||||
{
|
||||
if(IS_CLI) {
|
||||
if($return) {
|
||||
return $message;
|
||||
}
|
||||
|
||||
echo $message;
|
||||
return true;
|
||||
}
|
||||
|
||||
if($return)
|
||||
return '<div class="' . $type . '" style="margin-bottom:10px;">' . $message . '</div>';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user