X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fusers_db.inc;h=c50fc936414ed483b43ebb296e37786213065799;hb=c85c10b86be48b2b1df728f4751adbb38f2ac8d4;hp=7dfd7256a2a23a60fbd08a54a21f4abd97941d5f;hpb=aa7eb75a2b21809008113779e9b6c5fa7a869c9b;p=fa-stable.git diff --git a/admin/db/users_db.inc b/admin/db/users_db.inc index 7dfd7256..c50fc936 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); }