diff options
author | Stefan Andres Charsley <[email protected]> | 2014-01-12 22:32:32 +1300 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2014-04-26 13:27:54 +0100 |
commit | 058e636549d00a5915f5b6c8dffb54549ddae1b8 (patch) | |
tree | 6e6848a725f38a6ae2df92bfcfac1e985a78c7b3 /test | |
parent | c0de212c57b9c7b5266e7e1009af267b00b53387 (diff) |
FIX: Added parameter array checking
Changed some debugging code.
Diffstat (limited to 'test')
-rw-r--r-- | test/bootstrap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bootstrap.php b/test/bootstrap.php index 324a511..642e667 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -27,7 +27,7 @@ class MockPDOStatement extends PDOStatement { if (preg_match_all('/"[^"\\\\]*(?:\\?)[^"\\\\]*"|\'[^\'\\\\]*(?:\\?)[^\'\\\\]*\'|(\\?)/', $this->statement, $m)) { $count = count($m); for ($i = 0; $i < $count; $i++) { - if ($params[$i] == NULL) { + if (!isset($params[$i])) { ob_start(); var_dump($m, $params); $output = ob_get_clean(); |