fix upgrade.php for mysqli thanks emanuele for help

Signed-off-by: illori illori@simplemachines.org
Merge pull request #448 from illori/upgrade.php-fix

fix upgrade.php for mysqli thanks emanuele for help