Explorar o código

Merge pull request #782 from live627/r-2.1

! Misnamed variable
Arantor %!s(int64=11) %!d(string=hai) anos
pai
achega
0ecb56ae3a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']++;