Getting this error with the dev version:

Fatal error: Can't use function return value in write context in /sites/all/modules/taxonomy_menu/taxonomy_menu.module on line 574

Here is the line with the problem:

$link['options']['attributes']['title'] =
!empty(trim($item['description'])) ?
check_plain(strip_tags($item['description'])) :
check_plain(strip_tags($item['name']));

I got it to work with this change which may not be the best, but works:

$link['options']['attributes']['title'] =
strlen(trim($item['description']))>0 ?
check_plain(strip_tags($item['description'])) :
check_plain(strip_tags($item['name']));

Comments

tomsm’s picture

I get the same error after installing the latest dev.

I changed line 574 also to:
strlen(trim($item['description']))>0 ?

and it works.

indytechcook’s picture

Status: Active » Fixed

Good enough form (for now)

http://drupal.org/cvs?commit=392814

endiku’s picture

Same. Solution works.

Status: Fixed » Closed (fixed)

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