]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Minor typing stuff and syntax fixes
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Nov 2013 16:28:11 +0000 (17:28 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Nov 2013 16:28:11 +0000 (17:28 +0100)
classes/Group_block.php
lib/groupaction.php
lib/profilesection.php

index 8acd2546b959927ef07f270e873d59a13ca943f0..2cf46aa61d28aa7997571d0c08b5b61d69006216 100644 (file)
@@ -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;
             }
index 6e33cb321be31d0151c3d0992adb29ac3d4dafae..ede0e3100f4439f393f1ae7d2e15a47cacb1f166 100644 (file)
@@ -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'));
 
index 676fcd35402d47a33f53902856239b262ee7a239..516599cb91dec5870d646ec4bb638b66d167453a 100644 (file)
@@ -52,7 +52,7 @@ class ProfileSection extends Section
     {
         $profiles = $this->getProfiles();
 
-        if (!$profiles) {
+        if (!$profiles->N) {
             return false;
         }