From: Mikael Nordfeldth Date: Sat, 2 Nov 2013 16:28:11 +0000 (+0100) Subject: Minor typing stuff and syntax fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5e054bfdb3ac105e273787f85100e7a789e571eb;p=quix0rs-gnu-social.git Minor typing stuff and syntax fixes --- diff --git a/classes/Group_block.php b/classes/Group_block.php index 8acd2546b9..2cf46aa61d 100644 --- a/classes/Group_block.php +++ b/classes/Group_block.php @@ -76,7 +76,7 @@ class Group_block extends Managed_DataObject $result = $block->insert(); - if (!$result) { + if ($result === false) { common_log_db_error($block, 'INSERT', __FILE__); return null; } @@ -90,7 +90,7 @@ class Group_block extends Managed_DataObject if ($member->find(true)) { $result = $member->delete(); - if (!$result) { + if ($result === false) { common_log_db_error($member, 'DELETE', __FILE__); return null; } diff --git a/lib/groupaction.php b/lib/groupaction.php index 6e33cb321b..ede0e3100f 100644 --- a/lib/groupaction.php +++ b/lib/groupaction.php @@ -227,10 +227,6 @@ class GroupAction extends Action { $blocked = $this->group->getBlocked(0, MEMBERS_PER_SECTION); - if (!$blocked) { - return; - } - $this->elementStart('div', array('id' => 'entity_blocked', 'class' => 'section')); diff --git a/lib/profilesection.php b/lib/profilesection.php index 676fcd3540..516599cb91 100644 --- a/lib/profilesection.php +++ b/lib/profilesection.php @@ -52,7 +52,7 @@ class ProfileSection extends Section { $profiles = $this->getProfiles(); - if (!$profiles) { + if (!$profiles->N) { return false; }