Skip to content

Commit e641da6

Browse files
calendar library warning fix
1 parent 27d9b80 commit e641da6

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

calendar/calendar_form.php

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
error_reporting(0);
23
require_once('classes/tc_calendar.php');
34

45
$thispage = $_SERVER['PHP_SELF'];
@@ -213,11 +214,11 @@
213214
$is_selected = strtotime($y."-".$m."-".$day) - strtotime($sly."-".$slm."-".$sld);
214215
if($is_selected == 0) $htmlClass[] = "select";
215216
*/
216-
217+
217218
if(in_array($currentTime, $select_days)){
218-
$htmlClass[] = "select";
219+
$htmlClass[] = "select";
219220
}
220-
221+
221222

222223
//check date allowed
223224
if($ta1_set && $ta2_set){
@@ -263,7 +264,7 @@
263264
//check on monthly recursive
264265
if(isset($sp_dates[1]) && is_array($sp_dates[1]) && !$sp_found){
265266
foreach($sp_dates[1] as $sp_time){
266-
if($sp_time != "" && $sp_time > 0){
267+
if($sp_time != "" && $sp_time > 0){
267268
$sp_time_d = date('d', $sp_time);
268269
if($sp_time_d == $day){
269270
$sp_found = true;
@@ -502,11 +503,11 @@ function padString(stringToPad, padLength, padString) {
502503
function loading(){
503504
if(this.ccWidth > 0 && this.ccHeight > 0){
504505
var ccobj = getObject('calendar-container');
505-
506+
506507
ccobj.style.width = this.ccWidth+'px';
507508
ccobj.style.height = this.ccHeight+'px';
508509
}
509-
510+
510511
document.getElementById('calendar-container').innerHTML = "<div id=\"calendar-body\"><div class=\"refresh\"><div align=\"center\" class=\"txt-container\">Refreshing Calendar...</div></div></div>";
511512
adjustContainer();
512513
}
@@ -534,8 +535,8 @@ function adjustContainer(){
534535
div_obj.style.width = tc_obj.offsetWidth+'px';
535536
div_obj.style.height = tc_obj.offsetHeight+'px';
536537
//alert(div_obj.style.width+','+div_obj.style.height);
537-
538-
538+
539+
539540
var ccsize = getObject('calendar-container');
540541
this.ccWidth = ccsize.offsetWidth;
541542
this.ccHeight = ccsize.offsetHeight;
@@ -613,9 +614,9 @@ function adjustContainer(){
613614

614615
<input name="str" type="hidden" id="str" value="<?php echo($startDate);?>" />
615616
<input name="rtl" type="hidden" id="rtl" value="<?php echo($rtl);?>" />
616-
<input name="wks" type="hidden" id="wks" value="<?php echo($show_weeks);?>" />
617+
<input name="wks" type="hidden" id="wks" value="<?php echo($show_weeks);?>" />
617618
<input name="int" type="hidden" id="int" value="<?php echo($interval);?>" />
618-
619+
619620
<input name="hid" type="hidden" id="hid" value="<?php echo($auto_hide);?>" />
620621
<input name="hdt" type="hidden" id="hdt" value="<?php echo($auto_hide_time);?>" />
621622
</form>
@@ -653,7 +654,7 @@ function adjustContainer(){
653654
$this_link = isset($column[1]) ? $column[1] : "";
654655
$this_class = isset($column[2]) ? $column[2] : "";
655656
$this_id = isset($column[3]) ? $column[3] : "";
656-
657+
657658
$id_str = ($this_id) ? " id=\"$this_id\"" : "";
658659

659660
if($this_link){

0 commit comments

Comments
 (0)