diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 2b2a55948..dca13e7ba 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -801,7 +801,7 @@ class Model extends Object { } if ($name === 'tablePrefix') { $this->setDataSource(); - if (property_exists($this, 'tablePrefix')) { + if (property_exists($this, 'tablePrefix') && !empty($this->tablePrefix)) { return $this->tablePrefix; } return $this->tablePrefix = null;