X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcronhooks.php;h=7524a0c3a8883c80b4a914e54093d7cfa9351508;hb=7c342600c388d1cbf7845c05a4aa3ffc0a02f598;hp=986a86dfbb8b3b7a219727c83a72a4ca1210916a;hpb=22f32d9721809d2e655c7ab78d6a043b93de0af1;p=friendica.git diff --git a/include/cronhooks.php b/include/cronhooks.php index 986a86dfbb..7524a0c3a8 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -17,8 +17,6 @@ function cronhooks_run(&$argv, &$argc){ unset($db_host, $db_user, $db_pass, $db_data); }; - $a->start_process(); - require_once('include/session.php'); require_once('include/datetime.php'); @@ -27,7 +25,7 @@ function cronhooks_run(&$argv, &$argc){ // Don't check this stuff if the function is called by the poller if (App::callstack() != "poller_run") { - if (App::maxload_reached()) + if ($a->maxload_reached()) return; if (App::is_already_running('cronhooks', 'include/cronhooks.php', 1140)) return;