fixes #291, add function categories_integrity

to check and repair integrity on categories. For example,
image_category.category_id should always be linked to a categorie.id,
if not we delete the orphan line.
This commit is contained in:
plegall
2017-03-02 12:27:31 +01:00
parent c594112746
commit ea7e6d76e6
2 changed files with 40 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ switch ($action)
case 'categories' :
{
images_integrity();
categories_integrity();
update_uppercats();
update_category('all');
update_global_rank();