From 7c7e81ac70e9bf2f297b1ad59b64ffa169ef2ff0 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 3 Jun 2010 12:05:12 +0000 Subject: [PATCH] MINOR Removed stray $error variable that isn't necessary in MSSQLDatabase::query() --- code/MSSQLDatabase.php | 1 - 1 file changed, 1 deletion(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 795ad7f..ce07b0f 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -255,7 +255,6 @@ class MSSQLDatabase extends SS_Database { if($handle) $this->lastAffectedRows = sqlsrv_rows_affected($handle); if(function_exists('sqlsrv_errors')) { $errInfo = sqlsrv_errors(); - $error = ''; if($errInfo) { foreach($errInfo as $info) { $error .= implode(', ', array($info['SQLSTATE'], $info['code'], $info['message']));