summaryrefslogtreecommitdiffstats
path: root/amp-mpd.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-13 04:43:46 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-07-13 04:43:46 +0000
commit5bc35124a7077fc318ecfe0771b3cb591bdf6ef1 (patch)
tree2f040154ec747927581086bcac352dd7d395d81f /amp-mpd.php
parentc837dd5752ec436333fe246ce88a90ccfe6eae93 (diff)
downloadampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.tar.gz
ampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.tar.bz2
ampache-5bc35124a7077fc318ecfe0771b3cb591bdf6ef1.zip
fixed now playing, and added mpd file method to now playing
Diffstat (limited to 'amp-mpd.php')
-rw-r--r--amp-mpd.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/amp-mpd.php b/amp-mpd.php
index 2c564a66..f86950d8 100644
--- a/amp-mpd.php
+++ b/amp-mpd.php
@@ -24,6 +24,9 @@
require_once("modules/init.php");
+/* We need to create a MPD object here */
+$myMpd = init_mpd();
+
function mpd_redirect() {
if (conf('localplay_menu')) {
header ("Location: " . conf('web_path') . "/mpd.php");
@@ -33,7 +36,7 @@ function mpd_redirect() {
}
}
-if (!init_mpd()) {
+if (is_object($myMpd)) {
switch ($_REQUEST['action']) {
case "add":
if (!$user->has_access(25)) { break; }