summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-07-16 00:29:44 -0500
committerChris Buechler <cmb@pfsense.org>2016-07-16 00:29:44 -0500
commit8f70ba67a94b21e3a78728a7ba52057424b0a013 (patch)
treebb0d322ec87332ac428c55f6d37bfdf775157743 /src/usr
parent1d653e869b05e015105427516b41d5a7ac76b2eb (diff)
parent7940050bb9b1e7a24b8dd225da1a7aa2a0e158dc (diff)
downloadpfsense-8f70ba67a94b21e3a78728a7ba52057424b0a013.zip
pfsense-8f70ba67a94b21e3a78728a7ba52057424b0a013.tar.gz
Merge pull request #3060 from lukehamburg/patch-2
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/pkg_mgr.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index 0431e85..4326471 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -78,12 +78,12 @@ function get_pkg_table() {
$pkgtbl .= '<tr>' . "\n";
$pkgtbl .= '<td>' . "\n";
- if ($index['www']) {
+ if (($index['www']) && ($index['www'] != "UNKNOWN")) {
$pkgtbl .= '<a title="' . gettext("Visit official website") . '" target="_blank" href="' . htmlspecialchars($index['www']) . '">' . "\n";
+ $pkgtbl .= htmlspecialchars($index['shortname']) . '</a>' . "\n";
+ } else {
+ $pkgtbl .= htmlspecialchars($index['shortname']);
}
-
- $pkgtbl .= htmlspecialchars($index['shortname']);
- $pkgtbl .= '</a>' . "\n";
$pkgtbl .= '</td>' . "\n";
$pkgtbl .= '<td>' . "\n";
OpenPOWER on IntegriCloud