Skip to content

Commit e934ada

Browse files
cedric-anneRom1-B
andauthored
Do not start a session on CRON context (#85)
* Do not start a session on CRON context see glpi-project/glpi#21383 * changelog * Apply suggestion from @Rom1-B --------- Co-authored-by: Romain B. <[email protected]>
1 parent c63dea4 commit e934ada

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [UNRELEASED]
9+
10+
### Fixed
11+
12+
- Do not create sessions on CRON context
13+
814
## [1.1.0] - 2025-09-29
915

1016
### Added

inc/computergroupdynamic.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ public function isDynamicSearchMatchComputer(Computer $computer)
181181
];
182182

183183
if (!isset($_SESSION['glpiname'])) {
184-
Session::start();
185184
$_SESSION['glpiname'] = 'databaseinventory_plugin';
186185
}
187186
$search_params = Search::manageParams('Computer', $search);

0 commit comments

Comments
 (0)