Minor - fixing empty serialize.

1.9.x
Julio Montoya 11 years ago
parent 434ff8a5fa
commit 16588eef19
  1. 5
      main/admin/statistics/statistics.lib.php

@ -233,9 +233,12 @@ class Statistics
$row[2] = $row[2]; $row[2] = $row[2];
} else { } else {
if (!empty($row[2])) { if (!empty($row[2])) {
$row[2] = unserialize($row[2]); $originalData = $row[2];
$row[2] = unserialize($originalData);
if (is_array($row[2]) && !empty($row[2])) { if (is_array($row[2]) && !empty($row[2])) {
$row[2] = implode_with_key(', ', $row[2]); $row[2] = implode_with_key(', ', $row[2]);
} else {
$row[2] = $originalData;
} }
} }
} }

Loading…
Cancel
Save