# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/controller/controller.default.php +++ administrator/components/com_comprofiler/controller/controller.default.php @@ -1217,7 +1217,13 @@ $gtree2 = array_merge( $gtree2, $_CB_framework->acl->get_group_children_tree( null, 'USERS', false )); if ( checkJversion() == 2 ) { - if ( ! in_array( $ueConfig['imageApproverGid'], $gtree ) ) { + $mygrps = array(); + + if ( $gtree ) foreach ( $gtree as $treegrp ) { + $mygrps[] = $treegrp->value; + } + + if ( ! in_array( $ueConfig['imageApproverGid'], $mygrps ) ) { $image_approval = 8; // Joomla 1.6 super-admin to fix the default ueConfig for 1.6. } else { $image_approval = $ueConfig['imageApproverGid'];