summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorjchu <jchu>2004-12-15 02:23:36 +0100
committerjchu <jchu>2004-12-15 02:23:36 +0100
commit9d0a31c25e618660cf61a84565dae45581db57ae (patch)
tree0d75eb19aa90bebfe8c9aab61857460792456c5b /web/lib
parente816c84961436f34ac1b6516bf40377404d7a460 (diff)
downloadaur-9d0a31c25e618660cf61a84565dae45581db57ae.tar.gz
aur-9d0a31c25e618660cf61a84565dae45581db57ae.tar.xz
gonna use package_exists instead
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc20
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) {