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/regmod.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/regmod.php')
-rw-r--r-- | mod/regmod.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/regmod.php b/mod/regmod.php index 373180ba2..49a719493 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -29,7 +29,7 @@ function regmod_content(&$a) { intval($register[0]['uid']) ); - if($cmd == 'deny') { + if($cmd === 'deny') { $r = q("DELETE FROM `user` WHERE `uid` = %d LIMIT 1", intval($register[0]['uid']) @@ -49,7 +49,7 @@ function regmod_content(&$a) { } - if($cmd == 'allow') { + if($cmd === 'allow') { if(! count($user)) killme(); |