Skip to content

Commit

Permalink
2.1.26-RC1
Browse files Browse the repository at this point in the history
#1284 fix for can_manage_all_users update during upgrade
  • Loading branch information
nilsteampassnet committed May 10, 2016
1 parent 081fb61 commit b2a6cc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install/upgrade_run_2.1.26.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ function addColumnIfNotExist($db, $column, $columnAttr = "VARCHAR(255) NULL")
while ($c = mysqli_fetch_assoc( $columns)) {
if ($c['Field'] == $column) {
$exists = true;
return false;
return true;
}
}
if (!$exists) {
return mysqli_query($dbTmp, "ALTER TABLE `$db` ADD `$column` $columnAttr");
} else {
return false;
}
}

Expand Down

0 comments on commit b2a6cc3

Please sign in to comment.