Skip to content

Commit 90e35d7

Browse files
committed
Non-optimal if conditions
1 parent 598baa0 commit 90e35d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

class/Utility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public static function tag_load_config()
2525
$moduleConfig = [];
2626
$helper = \XoopsModules\Tag\Helper::getInstance();
2727
if ($GLOBALS['xoopsModule'] instanceof \XoopsModule
28-
&& ($helper->getDirname() === $GLOBALS['xoopsModule']->getVar('dirname', 'n'))
29-
&& !empty($GLOBALS['xoopsModuleConfig'])) {
28+
&& !empty($GLOBALS['xoopsModuleConfig'])
29+
&& ($helper->getDirname() === $GLOBALS['xoopsModule']->getVar('dirname', 'n'))) {
3030
$moduleConfig = $GLOBALS['xoopsModuleConfig'];
3131
} else {
3232
/** @var \XoopsConfigHandler $configHandler */

0 commit comments

Comments
 (0)