From 83b0af9070162664e1dca6b18d06e713d28f0f15 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sat, 21 Nov 2009 17:45:11 -0500 Subject: [PATCH 1/1] Fix bug in MPD/Common where playlist version numbers would not be properly returned in recent versions of MPD by changing heuristic to determine whether field was in response to a 'status' query. Still not the right way to do it, but oh well. --- inc/Net/MPD/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Net/MPD/Common.php b/inc/Net/MPD/Common.php index d921154..6fefdad 100644 --- a/inc/Net/MPD/Common.php +++ b/inc/Net/MPD/Common.php @@ -358,7 +358,7 @@ class Net_MPD_Common // This is to determine if it was in a status call // or in a directory call. case 'playlist': - if ($prev['key'] == 'random') { + if ($output['status']) { $output['status'][$key] = $value; } else { $output[$key][] = $value; -- 2.39.2