diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-02 07:15:54 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-07-02 08:23:25 +0200 |
commit | 64c4e51698c23b59121c94eb501ab2d4f97128e8 (patch) | |
tree | 1790aa8f9e0e5bcffe2613426c68b1db6a772599 /web/html/pkgbase.php | |
parent | 06b7099357b78468cf2d98ca3bd9143799952966 (diff) | |
download | aur-64c4e51698c23b59121c94eb501ab2d4f97128e8.tar.gz aur-64c4e51698c23b59121c94eb501ab2d4f97128e8.tar.xz |
pkgbase.php: Highlight error messages
Make sure that error messages above the package list are actually
visible to the user.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgbase.php')
-rw-r--r-- | web/html/pkgbase.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php index c246b6f1..5e27e4ec 100644 --- a/web/html/pkgbase.php +++ b/web/html/pkgbase.php @@ -79,14 +79,15 @@ if (check_token()) { if ($merge_base_id) { list($ret, $output) = pkgbase_delete($atype, $ids, $merge_base_id, $via); unset($_GET['ID']); - } - else { + } else { $output = __("Cannot find package to merge votes and comments into."); + $ret = false; } } } else { $output = __("The selected packages have not been deleted, check the confirmation checkbox."); + $ret = false; } } elseif (current_action("do_Notify")) { list($ret, $output) = pkgbase_notify($atype, $ids); @@ -145,7 +146,11 @@ html_header($title, $details); ?> <?php if ($output): ?> +<?php if ($ret): ?> <p class="pkgoutput"><?= $output ?></p> +<?php else: ?> +<ul class="errorlist"><li><?= $output ?></li></ul> +<?php endif; ?> <?php endif; ?> <?php |