Permalink
Browse files

Ensure $sources is Array before use

  • Loading branch information...
CauanCabral committed Jan 11, 2013
1 parent e369222 commit 099ca310e2b695250a42d0a984f5be3518e7e6b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/TestSuite/Fixture/CakeFixtureManager.php
@@ -175,7 +175,7 @@ protected function _setupTable($fixture, $db = null, $drop = true) {
return;
}
$sources = $db->listSources();
$sources = (array)$db->listSources();
$table = $db->config['prefix'] . $fixture->table;
$exists = in_array($table, $sources);

0 comments on commit 099ca31

Please sign in to comment.