From a8e49419bf0af2a5888c6d4dd4cc988692e74e57 Mon Sep 17 00:00:00 2001 From: dho Date: Thu, 15 Jun 2006 08:39:50 +0000 Subject: [PATCH] removed characters which caused syntax errors git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3101 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo/dbo_sybase.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_sybase.php b/cake/libs/model/datasources/dbo/dbo_sybase.php index 8a3bf7310..9372f62ef 100644 --- a/cake/libs/model/datasources/dbo/dbo_sybase.php +++ b/cake/libs/model/datasources/dbo/dbo_sybase.php @@ -238,11 +238,11 @@ class DboSybase extends DboSource { $data = $this->boolean((bool)$data); break; default: - ifÊ(get_magic_quotes_gpc()Ê&&Êtrim(ini_get("magic_quotes_sybase"))Ê==Ê"") { - $dataÊ=Êstripslashes($data); - $dataÊ=Êstr_replace("'",Ê"''",Ê$data); - } elseifÊ(!get_magic_quotes_gpc()) { - $dataÊ=Êstr_replace("'",Ê"''",Ê$data); + if (get_magic_quotes_gpc() && trim(ini_get("magic_quotes_sybase")) == "") { + $data = stripslashes($data); + $data = str_replace("'", "''", $data); + } elseif (!get_magic_quotes_gpc()) { + $data = str_replace("'", "''", $data); } break; }