This is pretty minor, but if the $keywords argument to apachesolr_stats_report_frequent_keywords() is null, then asort() and array_slice() both complain that they didn't receive arrays.

I have attached a patch which fixes this (just returns an empty string if $keywords is empty).


CommentFileSizeAuthor
null_keywords.patch1.39 KBhaxney

Comments

janusman’s picture

Status: Needs review » Fixed

Thanks! Patch did not apply... but made the changes and committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.