Line 32 in /var/www/vhosts/boltons.co.uk/httpdocs/app/src/Pages/InstrumentGroupPageController.php
23 ]; 24 25 private function setCategory($data) 26 { 27 if (array_key_exists('CategorySlug', $data)) { 28 $this->category = $this->Categories()->filter([ 29 'Slug' => $data['CategorySlug'] 30 ])->first(); 31 if (is_null($this->category)) { 32 throw new HTTPResponse_Exception(ErrorPage::response_for(404), 404); 33 } 34 } 35 } 36 37 private function setType($data) 38 {