mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-29 14:50:44 +00:00
Fix fatal error with PHP 5.4 (centos)
This commit is contained in:
parent
76bcb9d058
commit
8d09c888fb
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ class CronjobController extends CommonController
|
|||
$e = explode(', ', $m[1]);
|
||||
|
||||
$webserver = 'nginx';
|
||||
$webserver_running = !empty(exec("pgrep $webserver"));
|
||||
$res = exec("pgrep $webserver");
|
||||
$webserver_running = !empty($res);
|
||||
|
||||
if($e[0] > 4 && $webserver_running)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue