Reply To: Getting a frontend warning when "Search in buddypress activities" is turned on

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Getting a frontend warning when "Search in buddypress activities" is turned on Reply To: Getting a frontend warning when "Search in buddypress activities" is turned on

#13286

Ernest Marcinko
Keymaster

Hi!

Looks like that is a yet unknown bug there. Luckily it should not affect anything, it is only a warning message.
If you want to get rid of it, just change line 700 in that file from this:

$ra['allbuddypresults'][$k] = array_merge($ra['allbuddypresults'][$k], $v);

to these 3 lines:

if ( !isset($ra['allbuddypresults'][$k]) )
    $ra['allbuddypresults'][$k] = array();
$ra['allbuddypresults'][$k] = array_merge($ra['allbuddypresults'][$k], $v);

That should do the trick 🙂

The second issue I'm not sure I understand correctly, but adding that code will very likely not help. Can I take a look at it somewhere?

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)