Commit 0d865cc0 authored by webchick's avatar webchick

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

parent 641102f8
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment