diff --git a/cake/libs/model/datasources/dbo/dbo_mssql.php b/cake/libs/model/datasources/dbo/dbo_mssql.php index df6cb185e..569a6ceac 100644 --- a/cake/libs/model/datasources/dbo/dbo_mssql.php +++ b/cake/libs/model/datasources/dbo/dbo_mssql.php @@ -354,7 +354,7 @@ class DboMssql extends DboSource { $error = mssql_get_last_message($this->connection); if ($error) { - if (strpos('changed database', low($error)) !== false) { + if (strpos(low($error), 'changed database') === false) { return $error; } }