summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/archive.module2
-rw-r--r--modules/archive/archive.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 175534d9f..9f2c4d2f6 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -98,7 +98,7 @@ function archive_calendar($original = 0) {
$days = array(t('Su'), t('Mo'), t('Tu'), t('We'), t('Th'), t('Fr'), t('Sa'));
for ($i = 0; $i < 7; $i++) {
$output .= "<td>". $days[$cday] . "</td>";
- $cday = ($cday < 6 : $cday+1 : 0);
+ $cday = ($cday < 6 ? $cday+1 : 0);
}
$output .= "</tr>\n";
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 175534d9f..9f2c4d2f6 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -98,7 +98,7 @@ function archive_calendar($original = 0) {
$days = array(t('Su'), t('Mo'), t('Tu'), t('We'), t('Th'), t('Fr'), t('Sa'));
for ($i = 0; $i < 7; $i++) {
$output .= "<td>". $days[$cday] . "</td>";
- $cday = ($cday < 6 : $cday+1 : 0);
+ $cday = ($cday < 6 ? $cday+1 : 0);
}
$output .= "</tr>\n";