Skip to content

Commit

Permalink
5536 replace test on with test of false on queryDB() ALTER query
Browse files Browse the repository at this point in the history
  • Loading branch information
atutorlangs committed Sep 20, 2014
1 parent f70b9ff commit c62d839
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/classes/sqlutility.class.php
Expand Up @@ -223,8 +223,7 @@ public static function queryFromFile($sql_file_path, $table_prefix = null, $in_p
} elseif($prefixed_query[1] == 'REPLACE INTO') {
queryDB($prefixed_query[0], array(), FALSE, FALSE);
} elseif($prefixed_query[1] == 'ALTER TABLE') {
$result = queryDB($prefixed_query[0], array());
if($result > 0){
if(queryDB($prefixed_query[0], array()) !== false){
if ($in_plain_msg) {
$progress[] = 'Table <strong>'.$table.'</strong> altered successfully.';
} else {
Expand Down

0 comments on commit c62d839

Please sign in to comment.