Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correcting order

  • Loading branch information...
commit bed5453be0271f0b0fe925ccd3cd6721c185e088 1 parent 62dee78
@dereuromark dereuromark authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Model/CakeSchema.php
View
7 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.