aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-19 03:45:07 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-19 03:45:07 +0000
commit0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff (patch)
tree47101492ee8db3d9f6c1c0128783e8a5734fd307 /includes
parentafcfa0c4ab39291d30ded5e111c5537698e7c84e (diff)
downloadphpicalendar-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.php4
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) {

© 2014-2022 Faster IT GmbH | imprint | privacy policy