mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-26 03:40:54 +03:00
Fixing a problem where an empty input was interpretted as a set of locations
This commit is contained in:
parent
41a7392f15
commit
e4d8c740b5
|
@ -121,6 +121,11 @@ class Minion_Task_Db_Migrate extends Minion_Task
|
|||
if(is_array($location))
|
||||
return $location;
|
||||
|
||||
$location = trim($location);
|
||||
|
||||
if(empty($location))
|
||||
return array();
|
||||
|
||||
$locations = array();
|
||||
$location = explode(',', trim($location, ','));
|
||||
|
||||
|
|
Loading…
Reference in a new issue