Skip to content
Snippets Groups Projects
Commit 5f01acbe authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #13414 : ignore php error on deserialization

parent ff0aa9ab
Branches
Tags
3 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!108Dev#13283 Export Pret Unimarc,!99Dev#13283 Export Pret Unimarc
......@@ -20,8 +20,12 @@ for ($i = 1; $i <= $page_count; ++$i) {
}
// already serialized array, do nothing
if (is_array(unserialize($zone_995)))
set_error_handler(function() {});
if (is_array(unserialize($zone_995))) {
restore_error_handler();
continue;
}
restore_error_handler();
$values = explode(' ', $zone_995);
$new_zone_995 = [];
......
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