diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-19 03:45:07 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-19 03:45:07 +0000 |
commit | 0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff (patch) | |
tree | 47101492ee8db3d9f6c1c0128783e8a5734fd307 /includes | |
parent | afcfa0c4ab39291d30ded5e111c5537698e7c84e (diff) | |
download | phpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.tar.gz phpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.tar.bz2 phpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.zip |
Code optimization: Specifically replace each language variable instead of
looking for any.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/event.php | 4 |
1 files changed, 2 insertions, 2 deletions
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:]/]",'<a target="_new" href="\0">\0</a>',$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) { |