summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 915763ad7..4b2fb7a9e 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -327,7 +327,7 @@ class CI_DB_postgre_driver extends CI_DB {
}
elseif (is_bool($str))
{
- return $str ? "TRUE" : "FALSE";
+ return ($str) ? 'TRUE' : 'FALSE';
}
elseif (is_null($str))
{
@@ -629,7 +629,7 @@ class CI_DB_postgre_driver extends CI_DB {
$k = $this->protect_identifiers($k, FALSE, $escape);
$v = ' '.$this->escape($v);
}
- else if (is_bool($v))
+ elseif (is_bool($v))
{
$v = ' '.($v ? 'TRUE' : 'FALSE');
}