Commit 86b52af2 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Improve isCron check; fixes #3817

parent 85b74d6b
......@@ -634,8 +634,7 @@ class Session {
return (isset($_SESSION["glpicronuserrunning"])
&& (isCommandLine()
|| strpos($_SERVER['PHP_SELF'], 'cron.php')
|| strpos($_SERVER['PHP_SELF'], 'crontask.form.php')));
|| strpos($_SERVER['PHP_SELF'], '/cron.php')));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment