mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Ensure $sources is Array before use
This commit is contained in:
parent
e3692225ff
commit
099ca310e2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue