X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcronhooks.php;h=7524a0c3a8883c80b4a914e54093d7cfa9351508;hb=61c1317f804d8519492af249f8b4b8985f6cec5e;hp=4bb1e5f65960b3b3c1bbad1077d34628388040b0;hpb=0f4e57fb95aecd92be9ff009a1c8f1862605840d;p=friendica.git diff --git a/include/cronhooks.php b/include/cronhooks.php index 4bb1e5f659..7524a0c3a8 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -25,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;