1
0
Fork 0
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:
Matt Button 2010-12-31 00:48:33 +00:00
parent 41a7392f15
commit e4d8c740b5

View file

@ -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, ','));