From f4339e6b1ad9af6cf764d6b61d1d230eec0d5978 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 8 Feb 2017 16:14:11 +0100 Subject: [PATCH] HostController: did I ever mention... ...that I hate Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen? --- application/controllers/HostController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index 8bdae2c4..3cd03fc3 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -393,8 +393,8 @@ class HostController extends ObjectController { // TODO: I hate doing this: if ($this->getRequest()->getActionName() === 'ticket') { - $host = $this->object; + if ($host->getResolvedProperty('has_agent') !== 'y') { throw new NotFoundError('The host "%s" is not an agent', $host->object_name); }