Skip to content

Commit 03869be

Browse files
committed
fix(issue): php warning when running mailcollector
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 41e0108 commit 03869be

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

inc/issue.class.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,13 @@ public function getTicketsForDisplay($options) {
395395

396396
public function rawSearchOptions() {
397397
$tab = [];
398-
$hide_technician = \Entity::getUsedConfig(
399-
'anonymize_support_agents',
400-
$_SESSION['glpiactive_entity']
401-
);
398+
$hide_technician = false;
399+
if (!Session::isCron()) {
400+
$hide_technician = \Entity::getUsedConfig(
401+
'anonymize_support_agents',
402+
$_SESSION['glpiactive_entity']
403+
);
404+
}
402405

403406
$tab[] = [
404407
'id' => 'common',

0 commit comments

Comments
 (0)