Skip to content
Snippets Groups Projects
Commit da6983ca authored by Steven Wittens's avatar Steven Wittens
Browse files

- #40515: Make utf-8 update PHP5 compatible

parent 4be34db2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1493,7 +1493,7 @@ function _system_update_utf8($tables) {
// See if database uses UTF-8 already
$url = parse_url($GLOBALS['db_url']);
$db_name = substr($url['path'], 1);
$create = array_pop(db_fetch_array(db_query('SHOW CREATE DATABASE `%s`', $db_name)));
list(, $create) = db_fetch_array(db_query('SHOW CREATE DATABASE `%s`', $db_name));
if (preg_match('/utf8/i', $create)) {
return array();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment