diff --git a/include/class_logging.inc b/include/class_logging.inc index 0e1a81e479fb7f25b363c42a9482b9367f0c5d63..c6df9191a67ae28cd5f7e727e4149166c66b257f 100644 --- a/include/class_logging.inc +++ b/include/class_logging.inc @@ -132,7 +132,10 @@ class logging { */ static protected function log_into_ldap($entry) { - $tabObject = objects::create('auditAction'); + if ($entry['objecttype'] == 'plugin/auditEvent') { + return; // Avoid infinite loop + } + $tabObject = objects::create('auditEvent'); $baseObject = $tabObject->getBaseObject(); $baseObject->fdAuditDateTime = $entry['timestamp']; $baseObject->fdAuditAction = $entry['action'];