diff --git a/include/class_logging.inc b/include/class_logging.inc index 1e0b4343a632d29c572110fbc6fc73e6fb903660..ae0db1e65f4c4de52130b3dd898b37944f82eae5 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'];