mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove bogus if-statement from pkgbase_delete()
The variable $action is always undefined in pkgbase_delete() which makes the if-statement always true and triggers a warning whenever a package base is removed. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c557f348c4
commit
483c8f5178
1 changed files with 7 additions and 9 deletions
|
@ -522,15 +522,13 @@ function pkgbase_delete ($base_ids, $merge_base_id, $via, $grant=false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Scan through pending deletion requests and close them. */
|
/* Scan through pending deletion requests and close them. */
|
||||||
if (!$action) {
|
$username = username_from_sid($_COOKIE['AURSID']);
|
||||||
$username = username_from_sid($_COOKIE['AURSID']);
|
foreach ($base_ids as $base_id) {
|
||||||
foreach ($base_ids as $base_id) {
|
$pkgreq_ids = array_merge(pkgreq_by_pkgbase($base_id));
|
||||||
$pkgreq_ids = array_merge(pkgreq_by_pkgbase($base_id));
|
foreach ($pkgreq_ids as $pkgreq_id) {
|
||||||
foreach ($pkgreq_ids as $pkgreq_id) {
|
pkgreq_close(intval($pkgreq_id), 'accepted',
|
||||||
pkgreq_close(intval($pkgreq_id), 'accepted',
|
'The user ' . $username .
|
||||||
'The user ' . $username .
|
' deleted the package.', true);
|
||||||
' deleted the package.', true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue