Commit c55a8f49 authored by Vincent Talbot's avatar Vincent Talbot

Update laravel/cli/tasks/migrate/migrator.php

parent a5c5d70b
......@@ -105,17 +105,17 @@ class Migrator extends Task {
// If bundles supplied, filter migrations to rollback only bundles'
// migrations.
if (count($arguments) > 0)
{
$bundles = $arguments;
if ( ! is_array($bundles)) $bundles = array($bundles);
$migrations = array_filter($migrations, function($migration) use ($bundles)
{
return in_array($migration['bundle'], $bundles);
});
}
if (count($arguments) > 0)
{
$bundles = $arguments;
if ( ! is_array($bundles)) $bundles = array($bundles);
$migrations = array_filter($migrations, function($migration) use ($bundles)
{
return in_array($migration['bundle'], $bundles);
});
}
if (count($migrations) == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment