From 099ca310e2b695250a42d0a984f5be3518e7e6b2 Mon Sep 17 00:00:00 2001 From: Cauan Cabral Date: Fri, 11 Jan 2013 10:14:05 -0300 Subject: [PATCH] Ensure $sources is Array before use --- lib/Cake/TestSuite/Fixture/CakeFixtureManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php index 4d726efbb..ea875af7e 100644 --- a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php +++ b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php @@ -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);