mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
gonna use package_exists instead
This commit is contained in:
parent
e816c84961
commit
9d0a31c25e
1 changed files with 0 additions and 20 deletions
|
@ -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
|
# display package details
|
||||||
#
|
#
|
||||||
function package_details($id=0) {
|
function package_details($id=0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue