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; }