return;
}
- if (App::maxload_reached()) {
+ if ($a->maxload_reached()) {
return;
}
// The processlist only shows entries of the current user
if ($max != 0) {
$r = q("SHOW PROCESSLIST");
- if (!$r)
+ if (!dbm::is_result($r))
return false;
$used = count($r);
return;
}
- $url = get_app()->get_baseurl()."/worker";
+ $url = App::get_baseurl()."/worker";
fetch_url($url, false, $redirects, 1);
}