After enabling gmap_location.module on a PHP5 server, I get an error like this:

"Cannot use object of type stdClass as array" in gmap_location.module line 570.

This appears to be the same problem as in http://drupal.org/node/73031. In this case, the $edit array on lines 570 and 571 is only defined in the validate, insert and update cases. The fix is to create $object only during those three cases.

CommentFileSizeAuthor
gmap_location.patch.txt810 bytesParksy

Comments

bdragon’s picture

Status: Needs review » Fixed

Committed to DRUPAL-4-7 and DRUPAL-4-7--2.

Anonymous’s picture

Status: Fixed » Closed (fixed)