X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fusers_db.inc;h=55b31d747714c506cc11f475a5c752f32a980908;hb=d1babda7c01b314d35fb89f2d195553b55936532;hp=8e215a20222f736330edd537fd070fb7cbbe56a5;hpb=b6ae2ddcd0cbc571edd01157ca1c8d44bbe071ef;p=fa-stable.git diff --git a/admin/db/users_db.inc b/admin/db/users_db.inc index 8e215a20..55b31d74 100644 --- a/admin/db/users_db.inc +++ b/admin/db/users_db.inc @@ -107,6 +107,9 @@ function get_user_by_email($email) $result = db_query($sql, "could not get user for email $email"); + if (db_num_rows($result) != 1) + return false; + return db_fetch($result); }