$result = $block->insert();
- if (!$result) {
+ if ($result === false) {
common_log_db_error($block, 'INSERT', __FILE__);
return null;
}
if ($member->find(true)) {
$result = $member->delete();
- if (!$result) {
+ if ($result === false) {
common_log_db_error($member, 'DELETE', __FILE__);
return null;
}