Skip to content
This repository
Browse code

correcting order

  • Loading branch information...
commit bed5453be0271f0b0fe925ccd3cd6721c185e088 1 parent 62dee78
Mark authored August 08, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  lib/Cake/Model/CakeSchema.php
7  lib/Cake/Model/CakeSchema.php
@@ -254,11 +254,12 @@ public function read($options = array()) {
254 254
 					continue;
255 255
 				}
256 256
 
257  
-				$fulltable = $table = $db->fullTableName($Object, false, false);
258  
-				if ($prefix && strpos($table, $prefix) !== 0) {
  257
+				if (!is_object($Object) || $Object->useTable === false) {
259 258
 					continue;
260 259
 				}
261  
-				if (!is_object($Object) || $Object->useTable === false) {
  260
+
  261
+				$fulltable = $table = $db->fullTableName($Object, false, false);
  262
+				if ($prefix && strpos($table, $prefix) !== 0) {
262 263
 					continue;
263 264
 				}
264 265
 				if (!in_array($fulltable, $currentTables)) {

0 notes on commit bed5453

Please sign in to comment.
Something went wrong with that request. Please try again.