projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Happy New Year
[squirrelmail.git]
/
plugins
/
calendar
/
calendar.php
diff --git
a/plugins/calendar/calendar.php
b/plugins/calendar/calendar.php
index 03516bdaf0ec5fba2d1a0bfea7076a8aa6468ea7..d7147dd5690f474099873e62de90971759e77af3 100644
(file)
--- a/
plugins/calendar/calendar.php
+++ b/
plugins/calendar/calendar.php
@@
-3,7
+3,7
@@
/**
* Displays the main calendar page (month view).
*
/**
* Displays the main calendar page (month view).
*
- * @copyright
© 2002-2009
The SquirrelMail Project Team
+ * @copyright
2002-2021
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@
-110,15
+110,15
@@
function drawmonthview() {
}
if (isset($calendardata[$cdate])){
$i=0;
}
if (isset($calendardata[$cdate])){
$i=0;
-
while ($calfoo = each($calendardata[$cdate])
) {
- $calbar = $calendardata[$cdate][$
calfoo['key']
];
+
foreach ($calendardata[$cdate] as $key => $value
) {
+ $calbar = $calendardata[$cdate][$
key
];
// FIXME: how to display multiline task
// FIXME: how to display multiline task
- $title = '['. $
calfoo['key']
. '] ' .
- str_replace(array("\r","\n"),array(' ',' '),
htmlspecial
chars($calbar['message']));
+ $title = '['. $
key
. '] ' .
+ str_replace(array("\r","\n"),array(' ',' '),
sm_encode_html_special_
chars($calbar['message']));
// FIXME: link to nowhere
echo "<a href=\"#\" style=\"text-decoration:none; color: "
.($calbar['priority']==1 ? $color[1] : $color[6])
// FIXME: link to nowhere
echo "<a href=\"#\" style=\"text-decoration:none; color: "
.($calbar['priority']==1 ? $color[1] : $color[6])
- ."\" title=\"$title\">".
htmlspecial
chars($calbar['title'])."</a><br />\n";
+ ."\" title=\"$title\">".
sm_encode_html_special_
chars($calbar['title'])."</a><br />\n";
$i=$i+1;
if($i==2){
break;
$i=$i+1;
if($i==2){
break;