From c9fe97d408c63385389374d1d53e2286515ce3d2 Mon Sep 17 00:00:00 2001 From: dheeyi william Date: Thu, 16 Mar 2017 16:27:06 -0400 Subject: [PATCH] HOR-2874 Notice: Undefined index: pass, when we execute a process --- gulliver/thirdparty/creole/Creole.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gulliver/thirdparty/creole/Creole.php b/gulliver/thirdparty/creole/Creole.php index 72b5e1683..43dc43fd6 100644 --- a/gulliver/thirdparty/creole/Creole.php +++ b/gulliver/thirdparty/creole/Creole.php @@ -309,7 +309,11 @@ class Creole { ); $info = parse_url($dsn); - $info['pass'] = urldecode($info['pass']); + + if (!is_null($dsn)) { + $info['pass'] = urldecode($info['pass']); + } + if (count($info) === 1) { // if there's only one element in result, then it must be the phptype $parsed['phptype'] = array_pop($info); return $parsed;