From: Joshua Wise Date: Sat, 21 Nov 2009 22:45:11 +0000 (-0500) Subject: Fix bug in MPD/Common where playlist version numbers would not be properly returned... X-Git-Url: http://git.joshuawise.com/patchfork.git/commitdiff_plain/83b0af9070162664e1dca6b18d06e713d28f0f15?hp=89580839457c32076dfb69ba6d994d1324a4cdaa 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. --- 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;