diff options
author | Stefan Andres Charsley <[email protected]> | 2014-05-29 18:43:01 +1200 |
---|---|---|
committer | Stefan Andres Charsley <[email protected]> | 2014-05-29 18:43:01 +1200 |
commit | c16a31f6b8938fdb1bcd9a3ef36bd2a79e72b97b (patch) | |
tree | 8260e4abb9179e0e3540064e4cd15cc33aba536e | |
parent | 6a9b77c8a09e95af9c14f7ccd2c1ca00b1770fd2 (diff) |
Fix typos.
-rw-r--r-- | idiorm.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -414,9 +414,9 @@ $count = count($parameters); for ($i = 0; $i < $count; $i++) { $type = PDO::PARAM_STR; - if (is_null($parameters[i])) $type = PDO::PARAM_NULL; - if (is_bool($parameters[i])) $type = PDO::PARAM_BOOL; - if (is_numeric($parameters[i])) { + if (is_null($parameters[$i])) $type = PDO::PARAM_NULL; + if (is_bool($parameters[$i])) $type = PDO::PARAM_BOOL; + if (is_numeric($parameters[$i])) { $type = PDO::PARAM_INT; $parameters[$i] = +($parameters[$i]); } |