From 31b0b68b479aff1f85feb89010ed3fcf40a95673 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 21 Feb 2011 17:56:12 +0100 Subject: Automatically adopt when updating an orphan package (fixes FS#22992). Signed-off-by: Lukas Fleischer --- web/lib/aur.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') 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; } -- cgit v1.2.3-24-g4f1b