stronger type checking on comparisons

This commit is contained in:
Mike Macgirvin 2010-09-26 17:24:20 -07:00
parent 1105cdb065
commit 34eedb503a
19 changed files with 64 additions and 64 deletions

View file

@ -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();