summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/html/pkgsubmit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index e5498c42..e160571e 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -295,9 +295,11 @@ if ($_COOKIE["AURSID"]) {
# Check for http:// or other protocol in url
#
- $parsed_url = parse_url($pkgbuild['url']);
- if (!$parsed_url['scheme']) {
- $error = __("Package URL is missing a protocol (ie. http:// ,ftp://)");
+ if (!error) {
+ $parsed_url = parse_url($pkgbuild['url']);
+ if (!$parsed_url['scheme']) {
+ $error = __("Package URL is missing a protocol (ie. http:// ,ftp://)");
+ }
}
# Now, run through the pkgbuild array and do any $pkgname/$pkgver