From 5e054bfdb3ac105e273787f85100e7a789e571eb Mon Sep 17 00:00:00 2001
From: Mikael Nordfeldth <mmn@hethane.se>
Date: Sat, 2 Nov 2013 17:28:11 +0100
Subject: [PATCH] Minor typing stuff and syntax fixes

---
 classes/Group_block.php | 4 ++--
 lib/groupaction.php     | 4 ----
 lib/profilesection.php  | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)

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;
         }
 
-- 
2.39.5