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/item.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/item.php')
-rw-r--r-- | mod/item.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 |