Presumably when no users have any trophies, $trophies in
(found in the vBArcade - Render Postbit Trophies plugin) is null, causing the following error when posting a new post via Quick Reply:
This error causes the "Do you wish to leave this page?" popup, and is only visible via Firebug (as it's an AJAX error).
For anyone else having this issue, I fixed it by replacing the above code with
(typecasting $trophies to array) ![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
PHP:
if (array_key_exists($post['userid'], $trophies))
Code:
<br /> <b>Warning</b>: array_key_exists() expects parameter 2 to be array, null given in <b>/home/dbtech/public_html/includes/class_postbit.php(345) : eval()'d code</b> on line <b>21</b><br />
This error causes the "Do you wish to leave this page?" popup, and is only visible via Firebug (as it's an AJAX error).
For anyone else having this issue, I fixed it by replacing the above code with
PHP:
if (array_key_exists($post['userid'], (array)$trophies))
![Smile :) :)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)