diff --git a/main/install/install_db.inc.php b/main/install/install_db.inc.php
index fc088ecf4f..7be631ec2e 100755
--- a/main/install/install_db.inc.php
+++ b/main/install/install_db.inc.php
@@ -1,15 +1,15 @@
0)
-{
- $no=mysql_errno();
- $msg=mysql_error();
+if (mysql_errno() > 0) {
+ $no = mysql_errno();
+ $msg = mysql_error();
- echo '
['.$no.'] – '.$msg.'
+ echo '
['.$no.'] – '.$msg.'
The MySQL server doesn\'t work or login / pass is bad.
Please check these values:
- host : '.$dbHostForm.'
- user : '.$dbUsernameForm.'
- password : '.str_repeat('*',strlen($dbPassForm)).'
+ host : '.$dbHostForm.'
+ user : '.$dbUsernameForm.'
+ password : '.str_repeat('*', strlen($dbPassForm)).'
Please go back to step 3.