From 7a6c422d36beb00e0b6719fec7d3675b37d69af2 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 25 Feb 2013 21:25:57 -0800 Subject: replaced two DB queries with one that is indexed. --- include/db.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/db.php') diff --git a/include/db.php b/include/db.php index 3be9494..6568e75 100644 --- a/include/db.php +++ b/include/db.php @@ -141,16 +141,6 @@ function DB_get_version() return $version[0]; } -function DB_get_passwd_by_name($name) -{ - $r = DB_query_array("SELECT password FROM User WHERE fullname=".DB_quote_smart($name).""); - - if($r) - return $r[0]; - else - return ""; -} - function DB_get_passwd_by_userid($id) { $r = DB_query_array("SELECT password FROM User WHERE id=".DB_quote_smart($id).""); -- cgit v1.2.3-18-g5258