2
I think C stands for CUSTOM category. Because it's not possible to delete a category where the type is set to C.
Don't know for sure but that's all i can see from te code.
from line 92:
if (in_array(XOOPS_GROUP_ADMIN, $groups)) {
echo ' [<a href="admin.php?fct=images&op=editcat&imgcat_id='.$imagecategorys[$i]->getVar('imgcat_id').'">'._EDIT.'</a>]';
if ($imagecategorys[$i]->getVar('imgcat_type') == 'C') {
echo ' [<a href="admin.php?fct=images&op=delcat&imgcat_id='.$imagecategorys[$i]->getVar('imgcat_id').'">'._DELETE.'</a>]';
}
}
from line 515:
if ($imagecategory->getVar('imgcat_type') != 'C') {
xoops_cp_header();
xoops_error(_MD_SCATDELNG);
xoops_cp_footer();
exit();
}
Hope you can sleep now
Greets Dylian.
BTW Please mention the file you refer to the next time, it did take a time to figure out it was in modules\system\admin\images\main.php .