Permalink
Browse files

correcting order

  • Loading branch information...
1 parent 62dee78 commit bed5453be0271f0b0fe925ccd3cd6721c185e088 @dereuromark dereuromark committed Aug 8, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Model/CakeSchema.php
@@ -254,11 +254,12 @@ public function read($options = array()) {
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)) {

0 comments on commit bed5453

Please sign in to comment.