# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.acl.php +++ administrator/components/com_comprofiler/library/cb/cb.acl.php @@ -232,7 +232,12 @@ } else { if ( checkJversion() == 1 ) { - $user =& JFactory::getUser( (int) $user_id ); \ No newline at end of file + $user =& JFactory::getUser(); + + if ( $user_id ) { + $user->load( (int) $user_id ); + } + \ No newline at end of file $level = $user->get( 'aid', 0 ); } else { $user = new mosUser( $_CB_database );