From f88b77131fb964b789daa4bc0128ad23b135b5ac Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Fri, 10 Aug 2018 00:58:59 -0700 Subject: [PATCH] cron fix --- interface/forms/eye_mag/taskman.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/forms/eye_mag/taskman.php b/interface/forms/eye_mag/taskman.php index 5bb5a8cff..950f2c6a9 100644 --- a/interface/forms/eye_mag/taskman.php +++ b/interface/forms/eye_mag/taskman.php @@ -43,7 +43,10 @@ if (!$_SERVER['HTTP_HOST']) { $_SERVER['HTTP_HOST']='default'; //need to figure out how to do this for non-default installs } -$ignoreAuth=1; +// Check if running as a cronjob +if (php_sapi_name() === 'cli') { + $ignoreAuth=1; +} require_once("../../globals.php"); require_once("$srcdir/acl.inc"); -- 2.11.4.GIT