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/profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/profile.php') diff --git a/mod/profile.php b/mod/profile.php index 8c23b6c57..8395bc1f6 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -56,7 +56,7 @@ function profile_init(&$a) { } $profile = 0; - if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) { + if((local_user()) && ($a->argc > 2) && ($a->argv[2] === 'view')) { $which = $a->user['nickname']; $profile = $a->argv[1]; } @@ -129,7 +129,7 @@ function profile_content(&$a, $update = 0) { )); - if($tab == 'profile') { + if($tab === 'profile') { $lang = get_config('system','language'); if($lang && file_exists("view/$lang/profile_advanced.php")) require_once("view/$lang/profile_advanced.php"); @@ -164,7 +164,7 @@ function profile_content(&$a, $update = 0) { // This is ugly, but we can't pass the profile_uid through the session to the ajax updater, // because browser prefetching might change it on us. We have to deliver it with the page. - if($tab == 'posts' && (! $a->pager['start'])) { + if($tab === 'posts' && (! $a->pager['start'])) { $o .= '
' . "\r\n"; $o .= "\r\n"; } -- cgit v1.2.3