projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92d9bfa
)
BUGFIX: fix error when user is not logged in, but tries to access his home page
author
Arun Persaud
<arun@nubati.net>
Mon, 10 Dec 2012 02:39:26 +0000
(18:39 -0800)
committer
Arun Persaud
<arun@nubati.net>
Mon, 10 Dec 2012 02:39:26 +0000
(18:39 -0800)
needed to test, if variables were set or not.
include/user.php
patch
|
blob
|
history
diff --git
a/include/user.php
b/include/user.php
index d486b0746b96021d1c9f6b79f83bb2e2227c889b..607e89d9b6e1cb47e38327ee1a8394ab8332a668 100644
(file)
--- 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)