Hi,
The admin bar plugin generates a warning in the apache log when the admin clicks on the “See new messages” button.
The error:
PHP Warning – Invalid argument supplied for foreach() – file: /forum-plugins/admin-bar/library/sp-admin-bar-components.php – line: 402 – function: sp_NewPostListAdmin,
The error also appears in line 448.
I was able to fix the error by adding a check before both loops:
if (isset($topic[‘posts’])) {
….
I hope my fix can be integrated in future versions.
greetings