From: dj3c1t Date: Sun, 23 Dec 2012 19:45:32 +0000 (+0100) Subject: correction notive data users xml X-Git-Tag: mtweb.0.6.2~1 X-Git-Url: http://git.dj3c1t.com/index.cgi?a=commitdiff_plain;h=677d11e9019f667a974d6f7d3ad464c7b1e09cf7;p=mtweb correction notive data users xml --- 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 --- 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"]; } # ----------------------------------------------------------------------------------------