mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
fix scheduler return value if status is not recognized
This commit is contained in:
@@ -44,7 +44,6 @@ class module_console_schedulerState extends Command
|
|||||||
|
|
||||||
require_once __DIR__ . '/../../../../lib/bootstrap.php';
|
require_once __DIR__ . '/../../../../lib/bootstrap.php';
|
||||||
|
|
||||||
try {
|
|
||||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||||
$task_manager = new task_manager($appbox);
|
$task_manager = new task_manager($appbox);
|
||||||
|
|
||||||
@@ -78,9 +77,7 @@ class module_console_schedulerState extends Command
|
|||||||
return 13;
|
return 13;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user