Commit bc48ac21 authored by Dries's avatar Dries

- Patch #266434 by catch, merlinofchaos, sun: fixed E_NOTICE in pager_load_array().

parent 8514a7e2
......@@ -540,7 +540,7 @@ function pager_load_array($value, $element, $old_array) {
$new_array = $old_array;
// Look for empty elements.
for ($i = 0; $i < $element; $i++) {
if (!$new_array[$i]) {
if (empty($new_array[$i])) {
// Load found empty element with 0.
$new_array[$i] = 0;
}
......
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