From: moodler <moodler>
Date: Sat, 14 Feb 2004 08:17:01 +0000 (+0000)
Subject: Working around that PHP bug  - thanks for the confirmation Henrik!
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e1aaf05de9d932647c080cd5efd3441a16480f23;p=moodle.git

Working around that PHP bug  - thanks for the confirmation Henrik!
---

diff --git a/mod/journal/view.php b/mod/journal/view.php
index 5ce2488f3a..b9572e032e 100644
--- a/mod/journal/view.php
+++ b/mod/journal/view.php
@@ -45,7 +45,9 @@
 
     echo "<center>\n";
     
-    if (!empty(trim($journal->intro))) {
+    $journal->intro = trim($journal->intro);
+
+    if (!empty($journal->intro)) {
         print_simple_box( format_text($journal->intro,  $journal->introformat) , "center");
     }