diff --git a/cal.php b/cal.php
index ed02e43d08..b21de7e537 100644
--- a/cal.php
+++ b/cal.php
@@ -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;
$days = (($eomd - $day + 7) % 7) + ((abs($recur) - 1) * 7);
return mktime(0,0,1, date("m",$bom)+1, -$days, date("Y",$bom));
- }
+
}
// Display a
for each of the events that are on a given day
diff --git a/index.php b/index.php
index 34f7b2a301..784720664f 100644
--- a/index.php
+++ b/index.php
@@ -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';
diff --git a/manual/add-note.php b/manual/add-note.php
index 6403e65c89..5c1922841e 100644
--- a/manual/add-note.php
+++ b/manual/add-note.php
@@ -136,7 +136,7 @@
}
// There was an error, or a preview is needed
- else {
+
// If there was an error, print out
if ($error) { echo "
$error
\n"; }
@@ -146,7 +146,7 @@
echo '
';
manual_note_display(time(), $user, $note, FALSE);
echo '
';
- }
+
}
// Any needed variable was missing => display instructions