johnstray / gs-blog

A simple and easy to use, yet powerful blog for GetSimple. With this plugin, you can create blog posts, sort posts by category, view posts in monthly archives, plus much more.

Home Page:https://johnstray.com/gs-plugin/gs-blog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GSBlog->saveCategory doesn't check if the category already exists

johnstray opened this issue · comments

In the primary class, the method ->saveCategory() does not check if the category already exists before trying to save it. This results in duplicate categories being created, and therefor incorrect post category attribution.

Function will be modified so that it checks for the existence of the given category before attempting to update the list.

Sidenote: The function argument $existing=false is never used in the code. This will be removed because the code will check anyway, plus a new function exists for updating categories.