summaryrefslogtreecommitdiffstats
path: root/localplay.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-14 05:38:17 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-14 05:38:17 +0000
commit1cf69f04be778cdf377c53ca9ab2182d27756f94 (patch)
treec762a13e7a95afe03ad149b3a14d1fdbbf3d8597 /localplay.php
parent29b7de37028e9b923591ff0a2a810203037c174e (diff)
downloadampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.tar.gz
ampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.tar.bz2
ampache-1cf69f04be778cdf377c53ca9ab2182d27756f94.zip
some minor MPD changes and bug fixes for localplay
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