UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible 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 offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

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