summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mssql/mssql_driver.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-07 03:04:15 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-07 03:04:15 +0200
commit06a2e74e8834e88e4639d17dc756403985ca00f8 (patch)
treeccddc8a86edabaeb6810702524ce334d7762b334 /system/database/drivers/mssql/mssql_driver.php
parent69f23c1964c8e7352c5a75702fce30de9d4bd227 (diff)
Oops! Didn't realize that the CI super object was not being used by the main Driver. Fixed...
Diffstat (limited to 'system/database/drivers/mssql/mssql_driver.php')
-rw-r--r--system/database/drivers/mssql/mssql_driver.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index 9d7e072a4..1c6249aef 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -212,9 +212,12 @@ class CI_DB_mssql_driver extends CI_DB {
* @return string
*/
function escape_str($str)
- {
+ {
+ // Access the CI object
+ $CI->get_instance();
+
// Escape single quotes
- return str_replace("'", "''", $this->CI->input->_remove_invisible_characters($str));
+ return str_replace("'", "''", $CI->input->_remove_invisible_characters($str));
}
// --------------------------------------------------------------------