diff --git a/cake/libs/model/datasources/dbo/dbo_mssql.php b/cake/libs/model/datasources/dbo/dbo_mssql.php index 1424332f4d7..ebbe33fcf56 100644 --- a/cake/libs/model/datasources/dbo/dbo_mssql.php +++ b/cake/libs/model/datasources/dbo/dbo_mssql.php @@ -426,7 +426,7 @@ function update(&$model, $fields = array(), $values = null, $conditions = null) * @return string Error message with error number */ function lastError() { - $error = mssql_get_last_message($this->connection); + $error = mssql_get_last_message(); if ($error) { if (!preg_match('/contexto de la base de datos a|contesto di database|changed database|datenbankkontext/i', $error)) {