Ensure $sources is Array before use

This commit is contained in:
Cauan Cabral 2013-01-11 10:14:05 -03:00
parent e3692225ff
commit 099ca310e2

View file

@ -175,7 +175,7 @@ class CakeFixtureManager {
return;
}
$sources = $db->listSources();
$sources = (array)$db->listSources();
$table = $db->config['prefix'] . $fixture->table;
$exists = in_array($table, $sources);