mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-11694 adding error displaying into installer, it does not affect the debug and error displaying in final installation
MDL-11432 eliminated RecordCount
This commit is contained in:
parent
a77679e775
commit
41aa843717
@ -33,6 +33,10 @@ define('SITEID', 0);
|
||||
session_name('MoodleSession');
|
||||
@session_start();
|
||||
|
||||
/// make sure PHP errors are displayed to help diagnose problems
|
||||
@error_reporting(1023); //E_ALL not used because we do not want strict notices in PHP5 yet
|
||||
@ini_set('display_errors', '1');
|
||||
|
||||
if (! isset($_SESSION['INSTALL'])) {
|
||||
$_SESSION['INSTALL'] = array();
|
||||
}
|
||||
@ -369,7 +373,7 @@ if ($INSTALL['stage'] == DATABASE) {
|
||||
case 'mysqli':
|
||||
/// Get MySQL character_set_database value
|
||||
$rs = $db->Execute("SHOW VARIABLES LIKE 'character_set_database'");
|
||||
if ($rs && $rs->RecordCount() > 0) {
|
||||
if ($rs && !$rs->EOF) {
|
||||
$records = $rs->GetAssoc(true);
|
||||
$encoding = $records['character_set_database']['Value'];
|
||||
if (strtoupper($encoding) != 'UTF8') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user