projects
/
mtweb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37006f4
)
correction notive data users xml
author
dj3c1t
<dj3c1t@dj3c1t.net>
Sun, 23 Dec 2012 19:45:32 +0000
(20:45 +0100)
committer
dj3c1t
<dj3c1t@dj3c1t.net>
Sun, 23 Dec 2012 19:45:32 +0000
(20:45 +0100)
mw/app/data/modules/xml/mw_data_users.php
patch
|
blob
|
history
diff --git
a/mw/app/data/modules/xml/mw_data_users.php
b/mw/app/data/modules/xml/mw_data_users.php
index
a55257a
..
70287a3
100644
(file)
--- a/
mw/app/data/modules/xml/mw_data_users.php
+++ b/
mw/app/data/modules/xml/mw_data_users.php
@@
-385,9
+385,10
@@
}
function password_ok($user, $password){
+ if(!$user) return false;
return
- strcmp(md5($user["password"].$_SESSION["id"]), $password) == 0
- && $_SESSION["ip"] == $_SERVER["REMOTE_ADDR"];
+
strcmp(md5($user["password"].$_SESSION["id"]), $password) == 0
+
&& $_SESSION["ip"] == $_SERVER["REMOTE_ADDR"];
}
# ----------------------------------------------------------------------------------------