Skip to content

Commit e895e90

Browse files
committed
simplifications
1 parent 3ddc2b3 commit e895e90

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

admin/syn.tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
$criteria->add(new \Criteria('l.tag_modid', $modid));
9393
}
9494
$tags = &$tagHandler->getByLimit(0, 0, $criteria, null, false);
95-
if (empty($tags) && count($tags) > 0) {
95+
if ($tags && is_array($tags)) {
9696
foreach (array_keys($tags) as $tag_id) {
9797
$tagHandler->update_stats($tag_id, (-1 == $modid) ? Constants::DEFAULT_ID : $tags[$tag_id]['modid']);
9898
}

include/action.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function xoops_module_pre_install_tag(\XoopsModule $module)
4949
$success = true;
5050
}
5151

52-
if (false === $success) {
52+
if (!$success) {
5353
$module->setErrors("This module requires XOOPS {$requiredVer}+ ({$currentVer} installed)");
5454

5555
return false;

0 commit comments

Comments
 (0)