diff --git a/src/Pseudo/Result.php b/src/Pseudo/Result.php index 75b3431..9bded43 100644 --- a/src/Pseudo/Result.php +++ b/src/Pseudo/Result.php @@ -47,7 +47,11 @@ public function getRows(array $params = []) if ($this->params !== null && empty($params)) $params = $this->params; if ($params) { if ($this->isParameterized) { - return $this->rows[$this->stringifyParameterSet($params)]; + if(isset($this->rows[$this->stringifyParameterSet($params)])) { + return $this->rows[$this->stringifyParameterSet($params)]; + } else { + return []; + } } throw new Exception("Cannot get rows with parameters on a non-parameterized result"); } else {