mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21: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
|
@ -53,7 +53,7 @@ if($a->module_loaded) {
|
|||
$func($a);
|
||||
}
|
||||
|
||||
if(($_SERVER['REQUEST_METHOD'] == 'POST') && (! $a->error)
|
||||
if(($_SERVER['REQUEST_METHOD'] === 'POST') && (! $a->error)
|
||||
&& (function_exists($a->module . '_post'))
|
||||
&& (! x($_POST,'auth-params'))) {
|
||||
$func = $a->module . '_post';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue