Line 45 in /var/www/vhosts/boltons.co.uk/httpdocs/app/src/Pages/InstrumentGroupPageController.php
36 37 private function setType($data) 38 { 39 $this->setCategory($data); 40 if (array_key_exists('TypeSlug', $data)) { 41 $this->type = $this->Types()->filter([ 42 'Slug' => $data['TypeSlug'] 43 ])->first(); 44 if (is_null($this->type)) { 45 throw new HTTPResponse_Exception(ErrorPage::response_for(404), 404); 46 } 47 } 48 } 49 50 private function setInstrument($data) 51 {