Quote:
Originally Posted by Flow Fusion
PHP Code:
if ((THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'announcement')
...
This is the other script and it is edited cause it had an extra ) after announcement but...it still doesn't work.
From YAAS - postbit_display_start
...
|
Didn't notice, typed it as I remembered it before I edited it (my mistake!)
Quote:
Originally Posted by Kaelon
Fixed it! Apparently, an error over in the postbit_display_start plugin.
CHANGE THIS:
Code:
if ($vbulletin->options['aw_postbit'])
TO THIS:
Code:
if (($vbulletin->options['aw_postbit']) AND ($this->post['userid']))
|
Instead of
PHP Code:
if (($vbulletin->options['aw_postbit']) AND ($this->post['userid']))
To avoid a typecast from int to bool, it should be this (assuming you want it non-zero):
PHP Code:
if (($vbulletin->options['aw_postbit']) AND ($this->post['userid'] !== 0))
Assuming data is bad.