adm_program/modules/categories/categories_function.php
Consider simplifying this complex logical expression. Open
Open
if (($getType !== 'ROL' && isset($_POST['show_in_several_organizations']))
|| ($getType === 'USF' && $gCurrentOrganization->countAllRecords() === 1)
|| ($getType === 'ROL' && $category->getValue('cat_name_intern') === 'EVENTS')) {
$category->setValue('cat_org_id', 0);
$sqlSearchOrga = ' AND ( cat_org_id = ? -- $gCurrentOrgId