diff options
author | jchu <jchu> | 2004-12-15 02:23:36 +0100 |
---|---|---|
committer | jchu <jchu> | 2004-12-15 02:23:36 +0100 |
commit | 9d0a31c25e618660cf61a84565dae45581db57ae (patch) | |
tree | 0d75eb19aa90bebfe8c9aab61857460792456c5b /web | |
parent | e816c84961436f34ac1b6516bf40377404d7a460 (diff) | |
download | aur-9d0a31c25e618660cf61a84565dae45581db57ae.tar.gz aur-9d0a31c25e618660cf61a84565dae45581db57ae.tar.xz |
gonna use package_exists instead
Diffstat (limited to 'web')
-rw-r--r-- | web/lib/pkgfuncs.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 5c3b24ab..bfdaa58c 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -142,26 +142,6 @@ function pkgvotes_from_sid($sid="") { } -# get package details -# -function get_package_id_from_name($name="") { - global $_REQUEST; - global $pkgsearch_vars; - $pkg = 0; - $q = "SELECT ID "; - $q.= "FROM Packages "; - $q.= "WHERE Packages.Name = '".$name."'"; - $dbh = db_connect(); - $results = db_query($q, $dbh); - if (!$results) { - } else { - $pkg = mysql_fetch_assoc($results); - $pkg = $pkg['ID']; - } - return $pkg; -} - - # display package details # function package_details($id=0) { |