Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 00:29 UTC
Updated:
28 Jul 2010 at 15:40 UTC
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
Comment #1
tomsm commentedI get the same error after installing the latest dev.
I changed line 574 also to:
strlen(trim($item['description']))>0 ?and it works.
Comment #2
indytechcook commentedGood enough form (for now)
http://drupal.org/cvs?commit=392814
Comment #3
endiku commentedSame. Solution works.