Skip to content

Commit

Permalink
potential fix for #633
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Nov 30, 2015
1 parent 5703dfc commit 13c4122
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/routes/admin/server/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -876,15 +876,19 @@
return $response->code(500)->send();
}

$response->json(array(
'html' => $core->twig->render(
'admin/server/plugin-variables.html',
array(
'variables' => json_decode($orm->variables, true)
)
),
'startup' => $orm->default_startup
))->send();
return;
try {
return $response->json(array(
'html' => $core->twig->render(
'admin/server/plugin-variables.html',
array(
'variables' => json_decode($orm->variables, true)
)
),
'startup' => $orm->default_startup
))->send();
} catch (\Exception $e) {
Debugger::log($e);
return $response->code(500)->send();
}

});

0 comments on commit 13c4122

Please sign in to comment.