# 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/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -3013,7 +3021,7 @@ $tmpDatabase =& JFactory::getDBO(); $my =& JFactory::getUser(); $acl =& JFactory::getACL(); - $myAid = end( array_keys( $my->groups ) ); + $myAid = null; $sefFunc = array( 'JRoute', '_' ); $sefFuncHtmlEnt = false; $cmsUser = 'JUser'; @@ -3153,6 +3161,9 @@ $_CB_framework->acl = new CBACL( $acl ); +if ( checkJversion() == 2 ) { + $_CB_framework->_myCmsGid = (int) $_CB_framework->acl->getBackwardsCompatibleGid( array_values( $my->groups ) ); +} /** * CB text languages EXPERIMENTAL * @access private