We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d31d40 commit f6de3bdCopy full SHA for f6de3bd
1 file changed
src/Pseudo/Result.php
@@ -47,7 +47,11 @@ public function getRows(array $params = [])
47
if ($this->params !== null && empty($params)) $params = $this->params;
48
if ($params) {
49
if ($this->isParameterized) {
50
- return $this->rows[$this->stringifyParameterSet($params)];
+ if(isset($this->rows[$this->stringifyParameterSet($params)])) {
51
+ return $this->rows[$this->stringifyParameterSet($params)];
52
+ } else {
53
+ return [];
54
+ }
55
}
56
throw new Exception("Cannot get rows with parameters on a non-parameterized result");
57
} else {
0 commit comments