helpdesk-z / helpdeskz-dev

HelpDeskZ is a free PHP based software which allows you to manage your site's support with a web-based support ticket system.
http://www.helpdeskz.com/
GNU General Public License v2.0
87 stars 66 forks source link

knowlege base errors out if there arent any "popular" kb items #57

Open mfrederico opened 2 years ago

mfrederico commented 2 years ago

I don't have any "popular" kb items so the page errored out when I created a new KB item.

The fix is to add a quick if (!empty($article_list)) satement before the foreach on an empty array in hdz/app/Views/client/page_template.php on line 42