diff options
author | Arun Persaud <arun@nubati.net> | 2013-02-25 21:25:57 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2013-02-25 21:25:57 -0800 |
commit | 7a6c422d36beb00e0b6719fec7d3675b37d69af2 (patch) | |
tree | 38342197d733bc6eeee8c4e49885048c3a179a8d /include/db.php | |
parent | 34745273b4e8935b4423a0db050dcd75bc672209 (diff) | |
download | e-DoKo-7a6c422d36beb00e0b6719fec7d3675b37d69af2.tar.gz e-DoKo-7a6c422d36beb00e0b6719fec7d3675b37d69af2.tar.bz2 e-DoKo-7a6c422d36beb00e0b6719fec7d3675b37d69af2.zip |
replaced two DB queries with one that is indexed.
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 10 |
1 files changed, 0 insertions, 10 deletions
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).""); |