Skip to content

Commit e6799a5

Browse files
committed
Assignment in condition
1 parent 1be9b4a commit e6799a5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

blocks/block.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function tag_block_cloud_show($options, $dirname = '', $catid = 0)
157157
if (!empty($modid)) {
158158
/** @var \XoopsModuleHandler $moduleHandler */
159159
$moduleHandler = xoops_getHandler('module');
160-
if ($module_obj = $moduleHandler->get($modid)) {
160+
if (false !== ($module_obj = $moduleHandler->get($modid))) {
161161
$block['tag_dirname'] = $module_obj->getVar('dirname');
162162
}
163163
}
@@ -309,7 +309,7 @@ function tag_block_top_show($options, $dirname = '', $catid = 0)
309309
if (!empty($modid)) {
310310
/** @var \XoopsModuleHandler $moduleHandler */
311311
$moduleHandler = xoops_getHandler('module');
312-
if ($module_obj = $moduleHandler->get($modid)) {
312+
if (false !== ($module_obj = $moduleHandler->get($modid))) {
313313
$block['tag_dirname'] = $module_obj->getVar('dirname');
314314
}
315315
}
@@ -447,7 +447,7 @@ function tag_block_cumulus_show(array $options, $dirname = '', $catid = 0)
447447
if (!empty($modid)) {
448448
/** @var \XoopsModuleHandler $moduleHandler */
449449
$moduleHandler = xoops_getHandler('module');
450-
if ($module_obj = $moduleHandler->get($modid)) {
450+
if (false !== ($module_obj = $moduleHandler->get($modid))) {
451451
$block['tag_dirname'] = $module_obj->getVar('dirname');
452452
}
453453
}

0 commit comments

Comments
 (0)