Avatar

"edited by" in 2.3.7 Shows wrong if post is moved category (Bugs)

by Auge ⌂ @, Friday, December 09, 2016, 08:24 (289 days ago) @ Milo

Hello

I believe, the if-statement is the problem.

Are you sure? The observation says, there is a wrong name/user_account shown. It says not, that the condition to show or show not edits by an admin or mod failed.

Please replace it by the following one:

if(isset($_SESSION[$settings['session_prefix'].'user_type']) && $_SESSION[$settings['session_prefix'].'user_type']==2 && $settings['dont_reg_edit_by_admin']==1 || isset($_SESSION[$settings['session_prefix'].'user_type']) && $_SESSION[$settings['session_prefix'].'user_type']==1 && $settings['dont_reg_edit_by_mod']==1 || ($field['text']==$text && $field['subject']==$subject && ($field['user_id']>0 || $field['name']==$name && $field['location']==$location) && isset($_SESSION[$settings['session_prefix'].'user_type']) && ($_SESSION[$settings['session_prefix'].'user_type']==2 && $settings['dont_reg_edit_by_admin']==1 || $_SESSION[$settings['session_prefix'].'user_type']==1 && $settings['dont_reg_edit_by_mod']==1)))

Holy shit! What a monster. :-)

I'll have a (confused) look into it too.

Tschö, Auge

--
further development of mlf1


Complete thread:

 RSS Feed of thread

powered by my little forum