View Single Post
Old 17 Jul 2017, 18:39
Makaze's Avatar
Makaze Makaze is offline
Join Date: Apr 2015
Originally Posted by Dave View Post
The condition $post['userid'] == $bbuserinfo['userid'] checks if the userid of the post is the same as the userid of the current logged in user. Guests have a userid of 0 which is why it never (should) evaluates to true.

Have you tried changing == to ===? That will also match the data type.
Yes. I tested it with true === false as well. The condition was ignored regardless of contents.

--------------- Added 17 Jul 2017 at 18:43 ---------------

Originally Posted by MarkFL View Post
Try changing it to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This had no effect.

Once again, the code works when logged in. It fails when logged out.
Reply With Quote