From: Dylan Lloyd Date: Thu, 10 Mar 2011 21:37:06 +0000 (-0500) Subject: Fixed comment display broken from merge X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=9da61e74c9ee47a13e7e5d13ab951429d51e8629;p=dylansserver.git Fixed comment display broken from merge --- diff --git a/index.php b/index.php index bbd2254..7feaa03 100644 --- a/index.php +++ b/index.php @@ -182,9 +182,9 @@ OTHER_PROJECTS; // Because of the CSS necessary for the animations, // the contact link needs to be in #portfolio to clear // the floats. - echo "
  • "; + echo "
  • "; $this->display_contact(); - echo "
  • "; + echo ""; echo ""; $this->display_close($show_contact = false); } @@ -450,6 +450,11 @@ END_OF_NAVIGATION; $author = $entry['author']; $email = $entry['email']; $text = htmlspecialchars($entry['text']); + if ($email == '') { + $head = "

    $author

    "; + } else { + $head = "

    $author

    "; + } echo << $head @@ -565,7 +570,7 @@ class archive extends cms { AND DAY(date_posted) = ? ORDER BY date_posted DESC"; $result = $this->query($sql, "ddd", - $_GET['year'], $_GET['month'], + $_GET['year'], $_GET['month'], $_GET['day']); break; } @@ -581,8 +586,8 @@ class archive extends cms { $day_posted = $datetime_posted[0]; echo "
    "; echo "

    "; - echo "$year_posted/$month_posted/$day_posted/"; - echo "$title

    "; + echo "$year_posted/$month_posted/$day_posted/"; + echo "$title"; echo $entry['text']; echo "
    "; }