I will never understand scrut!

This commit is contained in:
laf
2015-12-08 23:12:26 +00:00
parent 977cdd558d
commit 9e9a48d78c

View File

@ -984,7 +984,6 @@ function update_device() {
$app = \Slim\Slim::getInstance(); $app = \Slim\Slim::getInstance();
$router = $app->router()->getCurrentRoute()->getParams(); $router = $app->router()->getCurrentRoute()->getParams();
$status = 'error'; $status = 'error';
$message = '';
$code = 500; $code = 500;
$hostname = $router['hostname']; $hostname = $router['hostname'];
// use hostname as device_id if it's all digits // use hostname as device_id if it's all digits