common.inc has been updated : - Patch 41169 by Chris: got rid of expensvie object 2 array casts.

I don't know how to do a patch but this should do the trick:

      line 553       $location = object2array($node_location);

change to

	  $location = (array)$node_location;

and

	  line 734      $user->location = object2array($location); 

change to

      $user->location = (array)$location;




line 551 is commented : //$location = object2array($node_location);

CommentFileSizeAuthor
#1 casting.patch1.06 KBmathieu

Comments

mathieu’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Here's a patch that works for me...

dado’s picture

this patch worked for me. i am using
drupal 4.7 latest cvs (beta 4)
php 5

geodaniel’s picture

Status: Needs review » Reviewed & tested by the community

+1
Worked for me in 4.7b4 too

ankur’s picture

Someone feel free to commit this patch. Maintainer is busy ATM. Will commit when less busy if it isn't done before I get to it.

-Ankur

dado’s picture

Status: Reviewed & tested by the community » Fixed

i committed this patch per ankur's request

Anonymous’s picture

Status: Fixed » Closed (fixed)