Permalink
Browse files

Fix for

  • Loading branch information...
sseshachala
sseshachala committed Jan 6, 2012
1 parent 4329ba0 commit 8934a3fbec82df37bde8ce397a80151ceb6bc9ad
Showing with 3 additions and 2 deletions.
  1. +3 −2 libraries/joomla/database/database/sqlsrvquery.php
@@ -68,8 +68,9 @@ public function __toString()
{
$query .= (string) $this->columns;
}
-
- $tableName = array_shift($this->insert->getElements());
+
+ $elements = $this->insert->getElements();
+ $tableName = array_shift($elements);
$query .= 'VALUES ';
$query .= (string) $this->values;

0 comments on commit 8934a3f

Please sign in to comment.