January 18, 2004 12:05 AM

Fixed The "Category Numbers Keep Changing" Bug

When more than nine categories were added, the category Id's would get all fouled up. This was discovered to be an issue with the order in which categories are displayed from the db_query function. To remedy this, the list_entries function now checks for how many categories it has to display and generates a list in sequence.

When deleting a category, more than one category could potentially be deleted, due to a faulty grep command. The grep command's regular expression was found to be too generalized and would return "1, 10, and 11", when it should have only returned "1". The regular expression now matches a more unique pattern that returns the correct numbers.

Posted by n1xt3r | Permanent link | File under: developer-notes | Comments: (0)


Comments are closed

If you really, really want to comment, please mail n1xt3r@fastmail.fm