summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 930add0..09e95ca 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -390,8 +390,8 @@ if ($uid):
}
# Update package depends
- $depends = explode(" ", $new_pkgbuild['depends']);
- if ($depends !== false) {
+ if (!empty($new_pkgbuild['depends'])) {
+ $depends = explode(" ", $new_pkgbuild['depends']);
foreach ($depends as $dep) {
$deppkgname = preg_replace("/(<|<=|=|>=|>).*/", "", $dep);
$depcondition = str_replace($deppkgname, "", $dep);