Commit 542c801e authored by Manfred Kutas's avatar Manfred Kutas

ZP-1002 is_null doesn't check for isset generating an undefined key

warning.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 409bb184
...@@ -660,7 +660,7 @@ class SqlStateMachine implements IStateMachine { ...@@ -660,7 +660,7 @@ class SqlStateMachine implements IStateMachine {
* @return string * @return string
*/ */
protected function getSQLOp(&$params, $key) { protected function getSQLOp(&$params, $key) {
if (is_null($params[$key])) { if (!array_key_exists($key, $params) || (array_key_exists($key, $params) && is_null($params[$key]))) {
unset($params[$key]); unset($params[$key]);
return " IS NULL"; return " IS NULL";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment