remove unused local variables and a few improvements

This commit is contained in:
Ceeram 2012-12-20 13:47:03 +01:00
parent f25f35353d
commit 3f4d24bfc0
38 changed files with 77 additions and 95 deletions

View file

@ -1799,7 +1799,7 @@ class Model extends Object implements CakeEventListener {
if ($with = $this->hasAndBelongsToMany[$assoc]['with']) {
$withModel = is_array($with) ? key($with) : $with;
list($pluginName, $withModel) = pluginSplit($withModel);
list(, $withModel) = pluginSplit($withModel);
$dbMulti = $this->{$withModel}->getDataSource();
} else {
$dbMulti = $db;