Minor typing stuff and syntax fixes

This commit is contained in:
Mikael Nordfeldth 2013-11-02 17:28:11 +01:00
parent a6f99e7296
commit 5e054bfdb3
3 changed files with 3 additions and 7 deletions

View File

@ -76,7 +76,7 @@ class Group_block extends Managed_DataObject
$result = $block->insert(); $result = $block->insert();
if (!$result) { if ($result === false) {
common_log_db_error($block, 'INSERT', __FILE__); common_log_db_error($block, 'INSERT', __FILE__);
return null; return null;
} }
@ -90,7 +90,7 @@ class Group_block extends Managed_DataObject
if ($member->find(true)) { if ($member->find(true)) {
$result = $member->delete(); $result = $member->delete();
if (!$result) { if ($result === false) {
common_log_db_error($member, 'DELETE', __FILE__); common_log_db_error($member, 'DELETE', __FILE__);
return null; return null;
} }

View File

@ -227,10 +227,6 @@ class GroupAction extends Action
{ {
$blocked = $this->group->getBlocked(0, MEMBERS_PER_SECTION); $blocked = $this->group->getBlocked(0, MEMBERS_PER_SECTION);
if (!$blocked) {
return;
}
$this->elementStart('div', array('id' => 'entity_blocked', $this->elementStart('div', array('id' => 'entity_blocked',
'class' => 'section')); 'class' => 'section'));

View File

@ -52,7 +52,7 @@ class ProfileSection extends Section
{ {
$profiles = $this->getProfiles(); $profiles = $this->getProfiles();
if (!$profiles) { if (!$profiles->N) {
return false; return false;
} }