r867 - webspace/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Aug 23 02:04:16 EDT 2006


Author: floam
Date: 2006-08-23 02:04:16 -0400 (Wed, 23 Aug 2006)
New Revision: 867

Modified:
   webspace/include/news.php
Log:
oops2


Modified: webspace/include/news.php
===================================================================
--- webspace/include/news.php	2006-08-23 06:02:55 UTC (rev 866)
+++ webspace/include/news.php	2006-08-23 06:04:16 UTC (rev 867)
@@ -42,7 +42,7 @@
 			}
 			if (strpos($item['text'], "<p>") != 0)
 				$item['text'] = "<p>" . $item['text'];
-			if (strrpos($item['text'], "</p>") != (strlen($item['text']) - 4))
+			if (strrpos(trim($item['text']), "</p>") != (strlen(trim($item['text'])) - 4))
 				$item['text'] .= "</p>";
 			echo "<h3 id=\"post" . $item['id'] . "\">" . $item['title'] . " - <em>" .
 			 date("F j, Y", strtotime($item['postdate'])) . "</em></h3>\n" . $item['text'] .




More information about the quake3-commits mailing list