Skip to content

Commit

Permalink
put values before variables in comparisons
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1486 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Sep 16, 2002
1 parent c6b1970 commit fb8a52c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/project_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: project_api.php,v 1.13 2002-09-06 23:59:00 jfitzell Exp $
# $Id: project_api.php,v 1.14 2002-09-16 02:36:33 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -63,7 +63,7 @@ function project_cache_row( $p_project_id, $p_trigger_errors=true) {
function project_clear_cache( $p_project_id = null ) {
global $g_cache_project;

if ( $p_project_id === null ) {
if ( null === $p_project_id ) {
$g_cache_project = array();
} else {
$c_project_id = db_prepare_int( $p_project_id );
Expand Down
6 changes: 3 additions & 3 deletions core/user_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: user_api.php,v 1.26 2002-09-16 00:50:06 jfitzell Exp $
# $Id: user_api.php,v 1.27 2002-09-16 02:36:33 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -64,7 +64,7 @@ function user_cache_row( $p_user_id, $p_trigger_errors=true) {
function user_clear_cache( $p_user_id = null ) {
global $g_cache_user;

if ( $p_user_id === null ) {
if ( null === $p_user_id ) {
$g_cache_user = array();
} else {
$c_user_id = db_prepare_int( $p_user_id );
Expand Down Expand Up @@ -117,7 +117,7 @@ function user_pref_cache_row( $p_user_id, $p_trigger_errors=true) {
function user_pref_clear_cache( $p_user_id = null ) {
global $g_cache_user_pref;

if ( $p_user_id === null ) {
if ( null === $p_user_id ) {
$g_cache_user_pref = array();
} else {
$c_user_id = db_prepare_int( $p_user_id );
Expand Down

0 comments on commit fb8a52c

Please sign in to comment.