For some reasons, the l() function throws a fatal error when the $options parameter is not an array. No matter the cause, one should never assume the type of a variable. Specially if a non expected type can bring the web site down.
I am submitting this patch to use and empty array if the provided $options parameter is not an array.
Cheers
Asiby
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 870616_8.patch | 402 bytes | lambic |
| #6 | 870616_7.patch | 402 bytes | lambic |
| #6 | 870616_6.patch | 392 bytes | lambic |
| common.inc_.patch | 370 bytes | asiby |
Comments
Comment #1
asiby commentedComment #2
dddave commentedComment #4
Mikey Bunny commentedI have the same problem. I have applied the patch and it works fine for me and fixes the issue. Please can we have more details as to why this failed testing? Thanks.
Comment #5
dpearcefl commentedif you look at "view details" on the patch, you will see "Ensure the patch applies to the tip of the chosen the code-base" meaning it wasn't against the latest 6.x-dev codebase.
Also make sure the patch file name is compliant. http://drupal.org/node/1054616
Comment #6
lambic commentedHere are 3 patches for 8.x, 7.x and 6.x
Comment #7
marcingy commentedThis is not critical and to be honest is really won't fix, drupal does not baby sit broken code. If something dies raise an issue with the contrib module or developer. And on a second point a silent conversion that provides success does no one any good.