summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/pkg_mgr.php')
-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