I do not recommend commenting out lines in the core. However if you do then atleast initialize the variable so that the notice you get will go away.
right ABOVE this
$shouldExtend = $this->displayType == NEWSFEED_CMP_Feed::DISPLAY_TYPE_ACTIVITY && $lastActivity !== null;
just add this
if(!isset($shouldExtend)) { $shouldExtend = ''; }
that should take care of it. :)
I don't understand enough php to find this in the code :-/
The reason you are getting that notice (not fatal error) is that the variable $shouldExtend is not initialized before using it.
I do not recommend commenting out lines in the core. However if you do then atleast initialize the variable so that the notice you get will go away.
right ABOVE this
$shouldExtend = $this->displayType == NEWSFEED_CMP_Feed::DISPLAY_TYPE_ACTIVITY && $lastActivity !== null;
just add this
if(!isset($shouldExtend)) { $shouldExtend = ''; }
that should take care of it. :)
Is it a big problem? Or a small problem? Or not a problem?
.............. :(
$shouldExtend = array();
But it sounds like its null and there is no check for that so when it tries to display it pops the notice because its null.
The reason you are getting that notice (not fatal error) is that the variable $shouldExtend is not initialized before using it.Thanks! Working!
I do not recommend commenting out lines in the core. However if you do then atleast initialize the variable so that the notice you get will go away.
right ABOVE this
$shouldExtend = $this->displayType == NEWSFEED_CMP_Feed::DISPLAY_TYPE_ACTIVITY && $lastActivity !== null;
just add this
if(!isset($shouldExtend)) { $shouldExtend = ''; }
that should take care of it. :)