summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 168fa4b4..25c1d718 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -357,11 +357,12 @@ function html_footer($ver="") {
function can_submit_pkg($name="", $sid="") {
if (!$name || !$sid) {return 0;}
$dbh = db_connect();
- $q = "SELECT MaintainerUID ";
+ $q = "SELECT MaintainerUID, DummyPkg ";
$q.= "FROM Packages WHERE Name = '".mysql_real_escape_string($name)."'";
$result = db_query($q, $dbh);
if (mysql_num_rows($result) == 0) {return 1;}
$row = mysql_fetch_row($result);
+ if ($row[1] == "1") { return 1; }
$my_uid = uid_from_sid($sid);
if ($row[0] == $my_uid) {