Skip to content

Commit

Permalink
fix(issue): php warning when running mailcollector
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 10, 2021
1 parent 849db8e commit c4bc865
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,13 @@ public function getTicketsForDisplay($options) {

public function rawSearchOptions() {
$tab = [];
$hide_technician = \Entity::getUsedConfig(
'anonymize_support_agents',
$_SESSION['glpiactive_entity']
);
$hide_technician = false;
if (!Session::isCron()) {
$hide_technician = \Entity::getUsedConfig(
'anonymize_support_agents',
$_SESSION['glpiactive_entity']
);
}

$tab[] = [
'id' => 'common',
Expand Down

0 comments on commit c4bc865

Please sign in to comment.