@@ -877,7 +877,7 @@ function get_vtodo() {
877
877
878
878
HEREDOC ;
879
879
880
- $ todo .= '<a class="psf" title=" ' . @ $ title . ' " href="#" onclick="openTodoInfo( ' . $ todo_popup_data_index . '); return false;"> ' ;
880
+ $ todo .= '<a class="psf" href="#" onclick="openTodoInfo( ' . $ todo_popup_data_index . '); return false;"> ' ;
881
881
$ todo_popup_data_index ++;
882
882
$ vtodo_array = $ todo ;
883
883
@@ -921,9 +921,11 @@ function get_vtodo() {
921
921
}
922
922
}
923
923
924
- function draw_month ($ template_p , $ offset = ' +0 ' , $ type ) {
924
+ function draw_month ($ template_p , $ offset , $ type ) {
925
925
global $ phpiCal_config , $ getdate , $ master_array , $ this_year , $ this_month , $ dateFormat_month , $ cal , $ minical_view , $ month_event_lines , $ daysofweekreallyshort_lang , $ daysofweekshort_lang , $ daysofweek_lang , $ timeFormat_small , $ timeFormat ;
926
-
926
+ if (!$ offset ) {
927
+ $ offset = '+0 ' ;
928
+ }
927
929
$ unique_colors = $ phpiCal_config ->unique_colors ;
928
930
preg_match ('!<\!-- loop weekday on -->(.*)<\!-- loop weekday off -->!Uis ' , $ template_p , $ match1 );
929
931
preg_match ('!<\!-- loop monthdays on -->(.*)<\!-- loop monthdays off -->!Uis ' , $ template_p , $ match2 );
@@ -1041,7 +1043,7 @@ function draw_month($template_p, $offset = '+0', $type) {
1041
1043
#echo "<pre>";print_r($switch);echo "</pre>";
1042
1044
1043
1045
foreach ($ switch as $ tag => $ data ) {
1044
- $ temp = str_replace ('{ ' .$ tag .'} ' , $ data , $ temp );
1046
+ $ temp = str_replace ('{ ' .$ tag .'} ' , ( string ) $ data , $ temp );
1045
1047
}
1046
1048
$ middle .= $ temp ;
1047
1049
@@ -1181,7 +1183,7 @@ function replace_tags($tags = array()) {
1181
1183
}
1182
1184
1183
1185
// This replaces any tags
1184
- $ this ->page = str_replace ('{ ' . strtoupper ($ tag ) . '} ' , $ data , $ this ->page );
1186
+ $ this ->page = str_replace ('{ ' . strtoupper ($ tag ) . '} ' , ( string ) $ data , $ this ->page );
1185
1187
}
1186
1188
1187
1189
else
0 commit comments