Minor typing stuff and syntax fixes
This commit is contained in:
parent
a6f99e7296
commit
5e054bfdb3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user