diff --git a/plugins/php/index.py b/plugins/php/index.py index 46cccb5b1..c0d94d665 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -50,13 +50,16 @@ def getArgs(): if args_len == 1: t = args[0].strip('{').strip('}') - t = t.split(':') + if t.strip() == '': + tmp = [] + else: + t = t.split(':', 1) + tmp[t[0]] = t[1] tmp[t[0]] = t[1] elif args_len > 1: for i in range(len(args)): t = args[i].split(':') tmp[t[0]] = t[1] - return tmp