Commit d6c8c7f8 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix logs

parent 64c3eb08
......@@ -237,7 +237,7 @@ class Log extends CommonDBTM {
];
$result = $DB->insert(self::getTable(), $params);
if ($result && $DB->affected_rows() > 0) {
if ($result && $DB->affected_rows($result) > 0) {
return $_SESSION['glpi_maxhistory'] = $DB->insert_id();
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment