diff --git a/lib/html.php b/lib/html.php
index 71e59cc4a..35d437719 100644
--- a/lib/html.php
+++ b/lib/html.php
@@ -1335,7 +1335,12 @@ function html_show_tabs_left() {
if ($config['poller_id'] > 1 && $config['connection'] != 'online') {
// Only show external links when online
} else {
- $external_links = db_fetch_assoc('SELECT id, title FROM external_links WHERE style="TAB" AND enabled="on" ORDER BY sortorder');
+ $external_links = db_fetch_assoc('SELECT id, title
+ FROM external_links
+ WHERE style="TAB"
+ AND enabled="on"
+ ORDER BY sortorder');
+
if (sizeof($external_links)) {
foreach($external_links as $tab) {
if (is_realm_allowed($tab['id']+10000)) {