Skip to content
Snippets Groups Projects
Commit 3ca68a66 authored by enured's avatar enured
Browse files

B17229: Log switch feUser only if current and old are not same. refs #17229

parent 1b6f8aff
No related branches found
No related tags found
4 merge requests!691New version v24.3.0,!638Merge Develop to B16343,!637develop into F17086-Multiple-Forms-on-a-page,!636B17229: Log switch feUser only if current and old are not same. refs #17229
Pipeline #11003 passed
......@@ -519,7 +519,9 @@ class Store {
if ($storeName === STORE_USER && $key == TYPO3_FE_USER) {
$qfqLogPathAbsolute = Path::absoluteQfqLogFile();
$feUserOld = isset($data[$key]) ? $data[$key] : self::getVar($key, STORE_TYPO3 . STORE_EMPTY);
Logger::logMessage(date('Y.m.d H:i:s ') . ": Switch feUser '$feUserOld' to '$value'", $qfqLogPathAbsolute);
if ($feUserOld !== $value) {
Logger::logMessage(date('Y.m.d H:i:s ') . ": Switch feUser '$feUserOld' to '$value'", $qfqLogPathAbsolute);
}
}
$data[$key] = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment