Skip to content
Snippets Groups Projects
Commit 0d865cc0 authored by Angie Byron's avatar Angie Byron
Browse files

#851140 by Damien Tournoud: Fixed DatabaseSchema::getPrefixInfo() is *severely* broken.

parent 641102f8
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
......@@ -187,7 +187,7 @@ protected function getPrefixInfo($table = 'default') {
// contains a schema reference in which case we will change the schema key
// to the value before the period in the prefix. Everything after the dot
// will be prefixed onto the front of the table.
if ($pos = strpos($info['prefix'], '.') !== FALSE) {
if (($pos = strpos($info['prefix'], '.')) !== FALSE) {
// Grab everything before the period.
$info['schema'] = substr($info['prefix'], 0, $pos);
// Grab everything after the dot, and prefix on to the table.
......
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