From 2d5790b184336483e76c647e2f889f6f29c94415 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 May 2015 18:14:22 +0200 Subject: [PATCH] Fixed variable check --- wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js b/wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js index 3c7ff955ad..288a439660 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js @@ -143,7 +143,7 @@ define(['Core', 'Dictionary', 'DOM/Traverse', 'DOM/Util', 'UI/SimpleDropdown'], if (hiddenItems.length) { var dropdownMenu; - if (dropdown === null) { + if (dropdown === undefined) { dropdown = document.createElement('li'); dropdown.className = 'dropdown jsFlexibleMenuDropdown'; var icon = document.createElement('a'); -- 2.20.1