Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cal.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ function date_for_recur($recur, $day, $bom, $eom)
}

// ${recur}th to last $day of the month
else {
$eomd = date("w",$eom) + 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent the code properly.

$days = (($eomd - $day + 7) % 7) + ((abs($recur) - 1) * 7);
return mktime(0,0,1, date("m",$bom)+1, -$days, date("Y",$bom));
}

}

// Display a <div> for each of the events that are on a given day
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
exit();
}
// Inform the user agent what is our last modification date
else {
header("Last-Modified: " . $tsstring);
}


$_SERVER['BASE_PAGE'] = 'index.php';
include_once 'include/prepend.inc';
Expand Down
4 changes: 2 additions & 2 deletions manual/add-note.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
}

// There was an error, or a preview is needed
else {

// If there was an error, print out
if ($error) { echo "<p class=\"formerror\">$error</p>\n"; }
Expand All @@ -146,7 +146,7 @@
echo '<div id="usernotes">';
manual_note_display(time(), $user, $note, FALSE);
echo '</div><br><br>';
}

}

// Any needed variable was missing => display instructions
Expand Down