diff options
Diffstat (limited to 'include/user.php')
-rw-r--r-- | include/user.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/user.php b/include/user.php index d486b07..607e89d 100644 --- a/include/user.php +++ b/include/user.php @@ -101,10 +101,14 @@ else { /* normal user page */ /* verify password and email */ - $ok = 1; - $myid = DB_get_userid('email-password',$email,$password); - if(!$myid) + if(isset($email, $password)) + { + $myid = DB_get_userid('email-password',$email,$password); + if(!$myid) + $ok = 0; + } + else $ok = 0; if($ok) |