UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

PHP Notice in includes/post/post.php - minor bug - 5.0.37

Paul Bradley · ·
11:06 PM Thursday, 22 September 2016
None
Hi,

After upgrading to EB 5.0.37, we started seeing PHP Notices in our development system (and in the server logs on live) for

PHP Notice: Undefined offset: 1 in /var/www/html/administrator/components/com_easyblog/includes/post/post.php on line 3658

Further investigation reveals this is almost certainly down to a too specific test on line 3657 which currently reads as:
if ($pos !== false) {
But should be changed to:
if ($pos != false) {
Since $pos is set by preg_match which returns, 0, 1, or FALSE. The conditional code should only execute if it's 1 (so the test could be ($post == 1) but != false somehow feels better - I can't explain why!)

Hope this helps
The replies under this section are restricted to logged in users or users with an active subscription with us