correcting order

This commit is contained in:
euromark 2012-08-08 14:44:38 +02:00
parent 62dee78ca5
commit bed5453be0

View file

@ -254,11 +254,12 @@ class CakeSchema extends Object {
continue;
}
$fulltable = $table = $db->fullTableName($Object, false, false);
if ($prefix && strpos($table, $prefix) !== 0) {
if (!is_object($Object) || $Object->useTable === false) {
continue;
}
if (!is_object($Object) || $Object->useTable === false) {
$fulltable = $table = $db->fullTableName($Object, false, false);
if ($prefix && strpos($table, $prefix) !== 0) {
continue;
}
if (!in_array($fulltable, $currentTables)) {