diff options
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-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) { |