Browse Source

Fixed bug suppressing any output when mysql is not installed/enabled.

(cherry picked from commit 9f9861ad20)
pull/40/head
Savetheinternet 14 years ago
committed by Paul Merrill
parent
commit
a1c77c3d17
  1. 2
      test.php

2
test.php

@ -43,6 +43,7 @@
// Database
title('Database');
if(extension_loaded('mysql')) {
if($sql = @mysql_connect(MY_SERVER, MY_USER, MY_PASSWORD)) {
$body .= check('Connection to server.', 'ok');
if(@mysql_select_db(MY_DATABASE, $sql))
@ -55,6 +56,7 @@
$body .= check('Connection to server.', 'error');
$todo[] = 'instance-config.php: Check database configuration.';
}
}
// Configuration
title('Configuration');

Loading…
Cancel
Save