Skip to content

Commit

Permalink
Fixed issue #9262: PHP warning on DB upgrade: reset() expects paramet…
Browse files Browse the repository at this point in the history
…er 1 to be array, string given
  • Loading branch information
c-schmitz committed Oct 13, 2014
1 parent bab96b6 commit bdaebbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -1297,9 +1297,8 @@ function upgradeTokenTables178()
$surveyidresult = dbGetTablesLike("tokens%");
if ($surveyidresult)
{
foreach ( $surveyidresult as $sv )
foreach ( $surveyidresult as $sTableName )
{
$sTableName=reset($sv);
$oSchema=$oSchema->getTable($sTableName);
foreach ($oSchema->columnNames as $sColumnName)
{
Expand Down

0 comments on commit bdaebbe

Please sign in to comment.