Hackademic/hackademic — pull request #78 by pchaigno (2014-05-22 11:54:38+00:00)
Title: Installation process: detect connection errors with mysqli

This pull request fixes a small bug during the installation process. Currently, if we enter incorrect authentication parameters for the MySQL server, the installation continue without error.

With `$link = new mysqli(...)`, if the connection fails, `$link` will still contain an empty mysqli object. Thus, we need to explicitly check for errors with `$link->connect_errno`.