Fix scrutinizer errors
This commit is contained in:
parent
6b16f64928
commit
cfcb40dd2a
@ -1178,7 +1178,7 @@ if (GETPOSTISSET('pageid') && $action == 'delete' && $permissiontodelete) {
|
|||||||
$res = $object->fetch(0, $websitekey);
|
$res = $object->fetch(0, $websitekey);
|
||||||
$website = $object;
|
$website = $object;
|
||||||
|
|
||||||
$res = $objectpage->fetch($pageid, $object->fk_website);
|
$res = $objectpage->fetch($pageid, $object->id);
|
||||||
|
|
||||||
if ($res > 0)
|
if ($res > 0)
|
||||||
{
|
{
|
||||||
@ -3484,9 +3484,11 @@ if ($action == 'editmeta' || $action == 'createcontainer')
|
|||||||
$c = new Categorie($db);
|
$c = new Categorie($db);
|
||||||
$cats = $c->containing($objectpage->id, Categorie::TYPE_WEBSITE_PAGE);
|
$cats = $c->containing($objectpage->id, Categorie::TYPE_WEBSITE_PAGE);
|
||||||
$arrayselected = array();
|
$arrayselected = array();
|
||||||
|
if (is_array($cats)) {
|
||||||
foreach ($cats as $cat) {
|
foreach ($cats as $cat) {
|
||||||
$arrayselected[] = $cat->id;
|
$arrayselected[] = $cat->id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$cate_arbo = $form->select_all_categories(Categorie::TYPE_WEBSITE_PAGE, '', 'parent', null, null, 1);
|
$cate_arbo = $form->select_all_categories(Categorie::TYPE_WEBSITE_PAGE, '', 'parent', null, null, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user