From 0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 19 May 2004 03:45:07 +0000 Subject: Code optimization: Specifically replace each language variable instead of looking for any. --- includes/event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/event.php b/includes/event.php index fb22ba2..8a79572 100644 --- a/includes/event.php +++ b/includes/event.php @@ -32,7 +32,7 @@ if ($start == '' && $end == '' && (isset($start) && isset($end))) { } if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$description); -if ($organizer) { +if (is_array($organizer)) { $i=0; $display .= $organizer_lang . ' - '; foreach ($organizer as $val) { @@ -41,7 +41,7 @@ if ($organizer) { } $organizer = substr($organizers,0,-2); } -if ($attendee) { +if (is_array($attendee)) { $i=0; $display .= $attendee_lang . ' - '; foreach ($attendee as $val) { -- cgit v1.2.3