Admidio/admidio

View on GitHub
adm_program/modules/categories/categories_function.php

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
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
Severity: Major
Found in adm_program/modules/categories/categories_function.php - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status