Some minor improvements
authorAlexander Ebert <ebert@woltlab.com>
Fri, 4 Dec 2015 13:01:32 +0000 (14:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 4 Dec 2015 13:01:32 +0000 (14:01 +0100)
wcfsetup/install/files/acp/templates/menuList.tpl
wcfsetup/install/files/lib/data/page/Page.class.php

index 0d10d437b5f357fcbd7f7c5be3b5384a73124959..b273eb5b89ee3c8210014f63bb0033c41d0ff574 100644 (file)
@@ -48,9 +48,9 @@
                                                        <a href="{link controller='MenuEdit' id=$menu->menuID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
                                                        <a href="{link controller='MenuItemList' id=$menu->menuID}{/link}" title="{lang}wcf.acp.menu.item.list{/lang}" class="jsTooltip"><span class="icon icon16 fa-list"></span></a>
                                                        {if $menu->canDelete()}
-                                                               <span class="icon icon16 fa-remove jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menu->menuID}" data-confirm-message="{lang}wcf.acp.menu.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menu->menuID}" data-confirm-message="{lang}wcf.acp.menu.delete.confirmMessage{/lang}"></span>
                                                        {else}
-                                                               <span class="icon icon16 fa-remove disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
+                                                               <span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
                                                        {/if}
                                                        
                                                        {event name='rowButtons'}
index 5f4cf10a82d3dbe3c62cd15ae1d5b8d5d4763845..6b185b86635e57075fef8ad12525346911ee6aa0 100644 (file)
@@ -98,7 +98,7 @@ class Page extends DatabaseObject {
                $statement->execute($conditions->getParameters());
                $row = $statement->fetchSingleRow();
                
-               return ($row !== false) ? $row : [];
+               return $row ?: [];
        }
        
        /**