mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-03 00:12:14 +02:00
PHP 7.4 fixes
This commit is contained in:
committed by
Pierrick Le Gall
parent
8a5a2d9831
commit
f9edbd34f7
@@ -122,8 +122,8 @@ WHERE '.$where.'
|
|||||||
),
|
),
|
||||||
'URL' => make_index_url(array('category' => $row)),
|
'URL' => make_index_url(array('category' => $row)),
|
||||||
'LEVEL' => substr_count($row['global_rank'], '.') + 1,
|
'LEVEL' => substr_count($row['global_rank'], '.') + 1,
|
||||||
'SELECTED' => $selected_category['id'] == $row['id'] ? true : false,
|
'SELECTED' => ($selected_category!==null && $selected_category['id'] == $row['id']) ? true : false,
|
||||||
'IS_UPPERCAT' => $selected_category['id_uppercat'] == $row['id'] ? true : false,
|
'IS_UPPERCAT' => ($selected_category!==null && $selected_category['id_uppercat'] == $row['id']) ? true : false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if ($conf['index_new_icon'])
|
if ($conf['index_new_icon'])
|
||||||
@@ -602,4 +602,4 @@ function remove_computed_category(&$cats, $cat)
|
|||||||
unset($cats[$cat['cat_id']]);
|
unset($cats[$cat['cat_id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ class Smarty_Internal_Runtime_UpdateScope
|
|||||||
while (isset($ptr->parent)) {
|
while (isset($ptr->parent)) {
|
||||||
$ptr = $ptr->parent;
|
$ptr = $ptr->parent;
|
||||||
}
|
}
|
||||||
$ptr->tpl_vars[$varName] = $tpl->tpl_vars[$varName];
|
if ($ptr) {
|
||||||
|
$ptr->tpl_vars[$varName] = $tpl->tpl_vars[$varName];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user