diff options
Diffstat (limited to 'app/Statement.php')
| -rw-r--r-- | app/Statement.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/Statement.php b/app/Statement.php index 74ee4cd89a..e2aedd22b9 100644 --- a/app/Statement.php +++ b/app/Statement.php @@ -64,18 +64,18 @@ class Statement { $key = ':' . $key; } switch (gettype($bind_variable)) { - case 'NULL': - $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_NULL); - break; - case 'boolean': - $this->pdo_statement->bindValue($key, (int) $bind_variable, PDO::PARAM_INT); - break; - case 'integer': - $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_INT); - break; - default: - $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_STR); - break; + case 'NULL': + $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_NULL); + break; + case 'boolean': + $this->pdo_statement->bindValue($key, (int) $bind_variable, PDO::PARAM_INT); + break; + case 'integer': + $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_INT); + break; + default: + $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_STR); + break; } } |
