summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 4ba0b74..f2777b7 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -13,7 +13,14 @@ check_sid(); # see if they're still logged in
$cwd = getcwd();
-if ($_COOKIE["AURSID"]):
+if ($_COOKIE["AURSID"]) {
+ $uid = uid_from_sid($_COOKIE['AURSID']);
+}
+else {
+ $uid = NULL;
+}
+
+if ($uid):
# Track upload errors
$error = "";
@@ -51,8 +58,6 @@ if ($_COOKIE["AURSID"]):
fclose($fh);
}
- $uid = uid_from_sid($_COOKIE['AURSID']);
-
if (!$error) {
$tar = new Archive_Tar($_FILES['pfile']['tmp_name']);