diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-26 17:24:20 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-26 17:24:20 -0700 |
commit | 34eedb503acad59d649f96d3250b40cc1c84047c (patch) | |
tree | 95f0eb71d4db446743f5043ce8009fcc1566d9fa /mod/contacts.php | |
parent | 1105cdb0654b6f9bb03e686b351da1cdaa8d8f4f (diff) | |
download | volse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.tar.gz volse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.tar.bz2 volse-hubzilla-34eedb503acad59d649f96d3250b40cc1c84047c.zip |
stronger type checking on comparisons
Diffstat (limited to 'mod/contacts.php')
-rw-r--r-- | mod/contacts.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 6541c1c0a..50cc1586a 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -98,7 +98,7 @@ function contacts_content(&$a) { } - if($cmd == 'block') { + if($cmd === 'block') { $blocked = (($orig_record[0]['blocked']) ? 0 : 1); $r = q("UPDATE `contact` SET `blocked` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($blocked), @@ -112,7 +112,7 @@ function contacts_content(&$a) { return; // NOTREACHED } - if($cmd == 'ignore') { + if($cmd === 'ignore') { $readonly = (($orig_record[0]['readonly']) ? 0 : 1); $r = q("UPDATE `contact` SET `readonly` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($readonly), @@ -126,7 +126,7 @@ function contacts_content(&$a) { return; // NOTREACHED } - if($cmd == 'drop') { + if($cmd === 'drop') { contact_remove($contact_id); notice( t('Contact has been removed.') . EOL ); goaway($a->get_baseurl() . '/contacts'); @@ -195,7 +195,7 @@ function contacts_content(&$a) { } - if(($a->argc == 2) && ($a->argv[1] == 'all')) + if(($a->argc == 2) && ($a->argv[1] === 'all')) $sql_extra = ''; else $sql_extra = " AND `blocked` = 0 "; |