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/item.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 922a407ef..fb2bff127 100644 --- a/mod/item.php +++ b/mod/item.php @@ -95,9 +95,9 @@ function item_post(&$a) { $post_type = notags(trim($_POST['type'])); - if($post_type == 'net-comment') { + if($post_type === 'net-comment') { if($parent_item !== null) { - if($parent_item['type'] == 'remote') { + if($parent_item['type'] === 'remote') { $post_type = 'remote-comment'; } else { @@ -107,7 +107,7 @@ function item_post(&$a) { } $wall = 0; - if($post_type == 'wall' || $post_type == 'wall-comment') + if($post_type === 'wall' || $post_type === 'wall-comment') $wall = 1; if(! strlen($verb)) @@ -244,7 +244,7 @@ function item_content(&$a) { $uid = $_SESSION['uid']; - if(($a->argc == 3) && ($a->argv[1] == 'drop') && intval($a->argv[2])) { + if(($a->argc == 3) && ($a->argv[1] === 'drop') && intval($a->argv[2])) { // locate item to be deleted -- cgit v1.2.3