Replace isset($_POST)
with !empty($_POST)
The former is always true (outside of post method it is an empty array and not null, and it cannot be `unset()`). The check was as such either meaningless or was supposed to check that something was sent. This commit assume the later.
This commit is contained in:
parent
293ea73b6b
commit
af94efde45
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
* @version 1.0
|
||||
*/
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST)) {
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST)) {
|
||||
$input_username = $_POST['login'];
|
||||
$input_password = $_POST['passw'];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue