Skip to content

Commit

Permalink
Exit is not a good idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Erkelens committed Feb 22, 2018
1 parent 4acb83d commit 128ca34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tasks/SeederTask.php
Expand Up @@ -92,11 +92,13 @@ public static function setFixtureFile($fixtureFile)
/**
* @param HTTPRequest $request
* @throws \Psr\Container\NotFoundExceptionInterface
* @return null
*/
public function run($request)
{
if (Director::isLive()) {
Debug::message('DO NOT RUN ME ON LIVE ENVIRONMENTS', false);exit;
Debug::message('DO NOT RUN ME ON LIVE ENVIRONMENTS', false);
return;
}

switch ($request->getVar('type')) {
Expand Down

0 comments on commit 128ca34

Please sign in to comment.