From: Moritz Venn Date: Wed, 5 Jan 2011 13:17:14 +0000 (+0100) Subject: MP.py: don't overwrite matchingPattern with empty string if type is unset X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp-plugin;a=commitdiff_plain;h=255921baf97febb4902811bec479b2a15e1c5120 MP.py: don't overwrite matchingPattern with empty string if type is unset might brake incorrect use of this interface, but fixes correct one ;-) --- diff --git a/webinterface/src/WebComponents/Sources/MP.py b/webinterface/src/WebComponents/Sources/MP.py index c0f294a..2beeaab 100644 --- a/webinterface/src/WebComponents/Sources/MP.py +++ b/webinterface/src/WebComponents/Sources/MP.py @@ -89,7 +89,7 @@ class MP(Source): useServiceRef = True elif param["types"] == "any": matchingPattern = ".*" - else: + elif param["types"]: matchingPattern = param["types"] path = param["path"]