Internal: Add error note explaining we ignore serialization failures

pull/3240/head
Yannick Warnier 6 years ago
parent a37803071c
commit f7c955cff4
  1. 3
      main/inc/lib/database.lib.php

@ -394,10 +394,11 @@ class Database
exit;
} else {
$msg = $e->getMessage();
error_log($msg);
if (preg_match('/Serialization failure:/', $msg)) {
//do nothing except from logging
error_log($msg.' - Reported but otherwise ignored');
} else {
error_log($msg);
api_not_allowed(false, get_lang('GeneralError'));
exit;
}

Loading…
Cancel
Save