summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/show_localplay_control.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php
index d1de9e0d..ee4512be 100644
--- a/templates/show_localplay_control.inc.php
+++ b/templates/show_localplay_control.inc.php
@@ -26,6 +26,8 @@ $localplay = init_localplay();
$required_info = conf('ajax_info');
$ajax_url = conf('ajax_url');
+/* If we actually got something back */
+if (is_object($localplay)) {
?>
<div class="localplaycontrol" style="display:table-cell;cursor:pointer;padding:2px;">
<?php if ($localplay->has_function('prev')) { ?>
@@ -50,3 +52,4 @@ $ajax_url = conf('ajax_url');
</span>
<?php } ?>
</div>
+<?php } // End if localplay object ?>