From a3636f866fed8d3519f734a90ed4fbd5483a8952 Mon Sep 17 00:00:00 2001 From: Matt Button Date: Thu, 30 Dec 2010 02:10:08 +0000 Subject: [PATCH] Fixing a bug where there are no versioned locations --- classes/model/minion/migration.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/classes/model/minion/migration.php b/classes/model/minion/migration.php index 0d48fa4..59c18ad 100644 --- a/classes/model/minion/migration.php +++ b/classes/model/minion/migration.php @@ -173,9 +173,16 @@ class Model_Minion_Migration extends Model // The user wants to run all available migrations if(empty($locations)) { - $keys = array_keys($migrations); + if(count($migrations)) + { + $keys = array_keys($migrations); - $locations = array_combine($keys, $keys); + $locations = array_combine($keys, $keys); + } + else + { + $locations = $this->fetch_all('location', 'location'); + } } // Merge locations with specified target versions