From: Alexander Ebert Date: Fri, 4 Dec 2015 13:01:32 +0000 (+0100) Subject: Some minor improvements X-Git-Tag: 3.0.0_Beta_1~2030^2~212^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d77abec80369b8e066c03a2b1d9c6b6106feb7ea;p=GitHub%2FWoltLab%2FWCF.git Some minor improvements --- diff --git a/wcfsetup/install/files/acp/templates/menuList.tpl b/wcfsetup/install/files/acp/templates/menuList.tpl index 0d10d437b5..b273eb5b89 100644 --- a/wcfsetup/install/files/acp/templates/menuList.tpl +++ b/wcfsetup/install/files/acp/templates/menuList.tpl @@ -48,9 +48,9 @@ {if $menu->canDelete()} - + {else} - + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index 5f4cf10a82..6b185b8663 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -98,7 +98,7 @@ class Page extends DatabaseObject { $statement->execute($conditions->getParameters()); $row = $statement->fetchSingleRow(); - return ($row !== false) ? $row : []; + return $row ?: []; } /**