Challenges without questions cause internal server error on frontend
2023-09-07 20:19:48 [145.224.66.153][3][ba67sqpf2vvn66d7auue36bfa8][error][yii\base\ErrorException:8] yii\base\ErrorException: Trying to get property 'rating' of non-object in /var/www/echoCTF.RED/frontend/widgets/vote/views/_vote.php:26
Stack trace:
The root cause for this is that the challenge check for whether it is completed ($model->completed) returns true when there are no questions. When a challenge has no questions, just display a notice to the user saying that. Also on the backend make sure that we notify the users that challenges require at least 1 question