summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/odbc/odbc_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers/odbc/odbc_driver.php')
-rw-r--r--system/database/drivers/odbc/odbc_driver.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 7c59c3060..985c975ce 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -242,8 +242,11 @@ class CI_DB_odbc_driver extends CI_DB {
*/
function escape_str($str)
{
+ // Access the CI object
+ $CI->get_instance();
+
// ODBC doesn't require escaping
- return $this->input->CI->_remove_invisible_characters($str);
+ return $CI->_remove_invisible_characters($str);
}
// --------------------------------------------------------------------