summaryrefslogtreecommitdiffstats
path: root/localplay.php
diff options
context:
space:
mode:
Diffstat (limited to 'localplay.php')
-rw-r--r--localplay.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/localplay.php b/localplay.php
index 0f593946..d91ea86e 100644
--- a/localplay.php
+++ b/localplay.php
@@ -71,7 +71,13 @@ switch ($action) {
require_once (conf('prefix') . '/templates/show_localplay.inc.php');
break;
default:
- require_once (conf('prefix') . '/templates/show_localplay.inc.php');
+ if ($localplay = init_localplay()) {
+ require_once (conf('prefix') . '/templates/show_localplay.inc.php');
+ }
+ else {
+ $GLOBALS['error']->add_error('general',_('Localplay Init Failed'));
+ $GLOBALS['error']->print_error('general');
+ }
break;
} // end switch action