[EventCalendar] Call-time pass-by-reference deprecated

Alex Tingle alex at firetree.net
Fri Sep 1 17:36:03 UTC 2006


On Thu, 10 Aug 2006 19:44:12 -0500
Darrell Schulte <d at schulte.mn> wrote:

> line 61:   $post_ids=array_flip(&$post_ids);

I changed it to this:

  if(ereg(^[1-4]),PHP_VERSION)
      $post_ids=array_flip(&$post_ids); // Old syntax
  else
      $post_ids=array_flip($post_ids); // PHP 5+ syntax

Which should work for everyone.

-Alex

-- 
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net  +44-7901-552763 



More information about the EventCalendar mailing list