summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-21 17:56:12 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-21 17:56:19 +0100
commit31b0b68b479aff1f85feb89010ed3fcf40a95673 (patch)
tree8db950f8d7a7da57eaa81112e885bf7a12b2b66e /web/lib
parentbc207d25cd47e2ebc0a2d603f0414ca97cf94366 (diff)
downloadaur-31b0b68b479aff1f85feb89010ed3fcf40a95673.tar.gz
aur-31b0b68b479aff1f85feb89010ed3fcf40a95673.tar.xz
Automatically adopt when updating an orphan package (fixes FS#22992).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aur.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 835b8a85..5a60c4c6 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -339,7 +339,7 @@ function can_submit_pkg($name="", $sid="") {
if ($row[1] == "1") { return 1; }
$my_uid = uid_from_sid($sid);
- if ($row[0] == $my_uid) {
+ if (!$row[0] || $row[0] == $my_uid) {
return 1;
}