Skip to content

Commit

Permalink
[#30046] Update SQLSRV with platform fixes. Thanks David Hurley.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hurley authored and dextercowley committed Apr 6, 2013
1 parent 127220a commit f9cb610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions installation/CHANGELOG
Expand Up @@ -31,6 +31,7 @@ $ -> Language fix or change
# [#30480] com_contact error in admin->view->contacts search "author:xxxx". Thanks Brent Cordis.
# [#30481] Missing space between icon-cog and caret in featured view. Thanks Thomas Hunziker.
# [#30250] Upgrade jQuery from 1.8.1 to 1.8.3. Thanks George Wilson.
# [#30046] Update SQLSRV with platform fixes. Thanks David Hurley.

05-Apr-2013 Jean-Marie Simonet
# [#30416] duplicate alias in banner manager on pressing save as copy
Expand Down
4 changes: 2 additions & 2 deletions libraries/joomla/database/driver/sqlsrv.php
Expand Up @@ -456,7 +456,7 @@ public function insertObject($table, &$object, $key = null)
$statement = 'INSERT INTO ' . $this->quoteName($table) . ' (%s) VALUES (%s)';
foreach (get_object_vars($object) as $k => $v)
{
if (is_array($v) or is_object($v))
if (is_array($v) or is_object($v) or $v === null)
{
continue;
}
Expand Down Expand Up @@ -815,7 +815,7 @@ public function transactionStart()
{
$this->connect();

$this->setQuery('START TRANSACTION');
$this->setQuery('BEGIN TRANSACTION');
$this->execute();
}

Expand Down

0 comments on commit f9cb610

Please sign in to comment.