summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2011-09-24 16:09:44 +0200
committerAndrey Andreev <narf@bofh.bg>2011-09-24 16:09:44 +0200
commit89e1780f16ea91e913d4231ec07b90391622c8cb (patch)
tree94b627d3913353eab8a0642221801b8da5c1b07e /system/database
parent66575267c85ef469a134b1d2eab5275bf24c7a27 (diff)
Fix a variable type mismatch (issue #89) in system/database/DB_driver.php
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 12c0530c5..31e4c2bca 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1166,7 +1166,7 @@ class CI_DB_driver {
if ($native == TRUE)
{
- $message = $error;
+ $message = ( ! is_array($error)) ? array($error) : $error;
}
else
{