Ver Fonte

Merge pull request #782 from live627/r-2.1

! Misnamed variable
Arantor há 11 anos atrás
pai
commit
0ecb56ae3a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      other/install.php

+ 1 - 1
other/install.php

@@ -1131,7 +1131,7 @@ function DatabasePopulation()
 
 			// Error 1050: Table already exists!
 			// @todo Needs to be made better!
-			if ((($db_type != 'mysql' && $db_type != 'mysqli') || $db_errno($db_connection) == 1050) && preg_match('~^\s*CREATE TABLE ([^\s\n\r]+?)~', $current_statement, $match) == 1)
+			if ((($db_type != 'mysql' && $db_type != 'mysqli') || $db_errorno($db_connection) == 1050) && preg_match('~^\s*CREATE TABLE ([^\s\n\r]+?)~', $current_statement, $match) == 1)
 			{
 				$exists[] = $match[1];
 				$incontext['sql_results']['table_dups']++;