[EventCalendar] Re: Event Calendar warning message in WP 2.0.4

Darrell Schulte d at schulte.mn
Tue Sep 19 00:57:20 UTC 2006


On Sep 18, 2006, at 6:08 PM, Rusty Smith wrote:

> OK, this seems to fix it, but might break other things? (I am no  
> coder):
> Changed line 63 in event calendar3.php from:
>
> $post_ids=array_flip(&$post_ids); // Old syntax
>
> to
>
> $post_ids=array_flip($post_ids); // Old syntax
>
> (Note the deletion of the "&" before "$post_ids)"
>
> Please let me know if this whacks anything else that I do not  
> notice in this config...

Nope, that's a good call, Rusty...was fixed during revision 93  
though...handled from now on with this nice chunk of code...

   // Flip $post_ids so that it maps post ID to position in the  
$posts array.
   $ver=PHP_VERSION;
   if(ereg('^[1-4]',$ver))
       $post_ids=array_flip(&$post_ids); // Old syntax
   else
       $post_ids=array_flip($post_ids); // PHP 5+ syntax



Darrell Schulte
http://schulte.mn





More information about the EventCalendar mailing list