If the contact form only has a single category, it spits out a nasty error when you go to http://yourwebsite/contact/
Fatal error: Only variables can be passed by reference in /home/www/dev/modules/contact.module on line 467
Line 467 is '#value' => array_shift(array_keys($categories)),
array_shift takes its parameter by ref
Hacker fix: Adding a second category (although unnecessary) causes the error to no longer occur. Not a real solution.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | contact.module.patch_1.txt | 669 bytes | drewish |
| #2 | contact.module.patch_0.txt | 677 bytes | drewish |
Comments
Comment #1
chx commentedsince when this is critical?
Comment #2
drewish commentedhere's a simple patch
Comment #3
drewish commentedactually, that variale name sucked.
Comment #4
drewish commentedsee also http://drupal.org/node/57517
Comment #5
killes@www.drop.org commenteda similar patch already got applied.
Comment #6
(not verified) commented