mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:10:11 +00:00
stronger type checking on comparisons
This commit is contained in:
parent
1105cdb065
commit
34eedb503a
19 changed files with 64 additions and 64 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue