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/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/network.php') diff --git a/mod/network.php b/mod/network.php index fa267fee2..541e10494 100644 --- a/mod/network.php +++ b/mod/network.php @@ -172,7 +172,7 @@ function network_content(&$a, $update = 0) { if(($item['parent'] == $item['item_id']) && (! $item['self'])) { - if($item['type'] == 'wall') { + if($item['type'] === 'wall') { // I do. Put me on the left of the wall-to-wall notice. $owner_url = $a->contact['url']; $owner_photo = $a->contact['thumb']; @@ -180,7 +180,7 @@ function network_content(&$a, $update = 0) { $template = $wallwall; $commentww = 'ww'; } - if($item['type'] == 'remote' && ($item['owner-link'] != $item['author-link'])) { + if($item['type'] === 'remote' && ($item['owner-link'] != $item['author-link'])) { // Could be anybody. $owner_url = $item['owner-link']; $owner_photo = $item['owner-avatar']; -- cgit v1.2.3