Add additional empty() for tablePrefix.

Fixes compatibility issues with plugins that worked correctly in
previous point releases.

Fixes #2462
This commit is contained in:
mark_story 2012-01-10 21:01:03 -05:00
parent dbea15650b
commit aeda986745

View file

@ -801,7 +801,7 @@ class Model extends Object {
} }
if ($name === 'tablePrefix') { if ($name === 'tablePrefix') {
$this->setDataSource(); $this->setDataSource();
if (property_exists($this, 'tablePrefix')) { if (property_exists($this, 'tablePrefix') && !empty($this->tablePrefix)) {
return $this->tablePrefix; return $this->tablePrefix;
} }
return $this->tablePrefix = null; return $this->tablePrefix = null;