Commit 5e054bfd authored by mmn's avatar mmn

Minor typing stuff and syntax fixes

parent a6f99e72
......@@ -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;
}
......
......@@ -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'));
......
......@@ -52,7 +52,7 @@ class ProfileSection extends Section
{
$profiles = $this->getProfiles();
if (!$profiles) {
if (!$profiles->N) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment