From 34eedb503acad59d649f96d3250b40cc1c84047c Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 26 Sep 2010 17:24:20 -0700 Subject: stronger type checking on comparisons --- mod/dfrn_poll.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/dfrn_poll.php') diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index a85351c8c..a65f6555d 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -26,13 +26,13 @@ function dfrn_poll_init(&$a) { $dfrn_id = substr($dfrn_id,2); } - if(($dfrn_id == '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) { + if(($dfrn_id === '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) { $o = get_feed_for($a, '*', $a->argv[1],$last_update); echo $o; killme(); } - if((x($type)) && ($type == 'profile')) { + if((x($type)) && ($type === 'profile')) { $sql_extra = ''; switch($direction) { @@ -85,7 +85,7 @@ function dfrn_poll_init(&$a) { } - if((x($type)) && ($type == 'profile-check')) { + if((x($type)) && ($type === 'profile-check')) { switch($direction) { case 1: @@ -173,7 +173,7 @@ function dfrn_poll_post(&$a) { $contact_id = $r[0]['id']; - if($type == 'reputation' && strlen($url)) { + if($type === 'reputation' && strlen($url)) { $r = q("SELECT * FROM `contact` WHERE `url` = '%s' AND `uid` = %d LIMIT 1", dbesc($url), intval($owner_uid) -- cgit v1.2.3