$statement->execute();
$sql = "UPDATE wcf".WCF_N."_page_menu_item
- SET isLandingPage = ?
+ SET isLandingPage = ?,
+ isDisabled = ?
WHERE menuPosition = ?
AND parentMenuItem = ?
AND menuItemController <> ?
$statement = WCF::getDB()->prepareStatement($sql, 1);
$statement->execute(array(
1,
+ 0,
'header',
'',
''
$data = array();
$menuItemList = new PageMenuItemList();
- $menuItemList->getConditionBuilder()->add("page_menu_item.isDisabled = ?", array(0));
+ $menuItemList->getConditionBuilder()->add("(page_menu_item.isDisabled = ? OR page_menu_item.isLandingPage = ?)", array(0, 1));
$menuItemList->sqlOrderBy = "page_menu_item.showOrder ASC";
$menuItemList->readObjects();