diff options
Diffstat (limited to 'system/database/drivers/mssql/mssql_driver.php')
-rw-r--r-- | system/database/drivers/mssql/mssql_driver.php | 7 |
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));
}
// --------------------------------------------------------------------
|