Skip to content

Commit

Permalink
[#31401] Fixed issue with object being overwritten by string. (Fix #1446
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Peter van Westen authored and Michael Babker committed Jul 21, 2013
1 parent f747e97 commit cdcd509
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions installation/CHANGELOG
Expand Up @@ -27,6 +27,9 @@ $ -> Language fix or change

; Below is merged into v3.1.2

21-Jul-2013 Michael Babker
# [#31401] Fixed issue with $query object being overwritten by string. Thanks Peter van Westen

21-Jul-2013 Jean-Marie Simonet
+ [#31349] Display Error Message when Magic Quotes is Enabled. Thanks Brian Teeman
#+ [#31488] Add Observer pattern to JTable (and use it for Tags implementation (which also fixes [#31339] too). Thanks Beat.
Expand Down
8 changes: 4 additions & 4 deletions libraries/cms/installer/installer.php
Expand Up @@ -1101,13 +1101,13 @@ public function parseSchemaUpdates(SimpleXMLElement $schema, $eid)
}

// Process each query in the $queries array (split out of sql file).
foreach ($queries as $query)
foreach ($queries as $q)
{
$query = trim($query);
$q = trim($q);

if ($query != '' && $query{0} != '#')
if ($q != '' && $q{0} != '#')
{
$db->setQuery($query);
$db->setQuery($q);

if (!$db->execute())
{
Expand Down

0 comments on commit cdcd509

Please sign in to comment.