Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislas <skita@teclib.com>
  • Loading branch information
ccailly and stonebuzz authored Sep 17, 2024
1 parent 3692dce commit 3711f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CronTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ public static function launch($mode, $max = 1, $name = '')
);
if ($crontask->getNeedToRun($mode, $name)) {
$_SESSION["glpicronuserrunning"] = "cron_" . $crontask->fields['name'];
$_SESSION["glpiactive_entity"] = 0;
Session::loadEntity(0, true);
$_SESSION["glpigroups"] = [];
$_SESSION["glpiname"] = "cron";

Expand Down

0 comments on commit 3711f5a

Please sign in to comment.