[EventCalendar] Call-time pass-by-reference deprecated
Alex Tingle
alex at firetree.net
Fri Sep 1 17:48:23 UTC 2006
On Fri, 1 Sep 2006 18:36:03 +0100
Alex Tingle <alex at firetree.net> wrote:
> 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
Or even this, which actually works...
$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
-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