From d77abec80369b8e066c03a2b1d9c6b6106feb7ea Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 4 Dec 2015 14:01:32 +0100 Subject: [PATCH] Some minor improvements --- wcfsetup/install/files/acp/templates/menuList.tpl | 4 ++-- wcfsetup/install/files/lib/data/page/Page.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ?: []; } /** -- 2.20.1