diff --git a/public_html/lists/admin/lib.php b/public_html/lists/admin/lib.php index 910bb5ce8..c1d705b24 100644 --- a/public_html/lists/admin/lib.php +++ b/public_html/lists/admin/lib.php @@ -959,7 +959,9 @@ function getPageLock($force = 0) cl_output($GLOBALS['I18N']->get('Running commandline, quitting. We\'ll find out what to do in the next run.')); exit; } - output($GLOBALS['I18N']->get('Sleeping for 20 seconds, aborting will quit'), 0); + if (function_exists('output')) { + output($GLOBALS['I18N']->get('Sleeping for 20 seconds, aborting will quit'), 0); + } flush(); $abort = ignore_user_abort(0); sleep(20); @@ -967,9 +969,9 @@ function getPageLock($force = 0) ++$waited; if ($waited > 10) { // we have waited 10 cycles, abort and quit script - output($GLOBALS['I18N']->get('We have been waiting too long, I guess the other process is still going ok'), - 0); - + if (function_exists('output')) { + output($GLOBALS['I18N']->get('We have been waiting too long, I guess the other process is still going ok'), 0); + } return false; } $running_req = Sql_query('select now() - modified,id from '.$tables['sendprocess']." where page = \"$thispage\" and alive order by started desc");