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.

Comments

chx’s picture

Priority: Critical » Minor

since when this is critical?

drewish’s picture

Status: Active » Needs review
StatusFileSize
new677 bytes

here's a simple patch

drewish’s picture

StatusFileSize
new669 bytes

actually, that variale name sucked.

drewish’s picture

killes@www.drop.org’s picture

Status: Needs review » Fixed

a similar patch already got applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)