[Fusionforge-commits] r12961 - branches/Branch_5_1/src/common/forum
Alain Peyrat
aljeux at fusionforge.org
Thu Mar 31 18:42:23 CEST 2011
Author: aljeux
Date: 2011-03-31 18:42:23 +0200 (Thu, 31 Mar 2011)
New Revision: 12961
Modified:
branches/Branch_5_1/src/common/forum/ForumMessageFactory.class.php
Log:
Fix the No message at the bottom of news
Modified: branches/Branch_5_1/src/common/forum/ForumMessageFactory.class.php
===================================================================
--- branches/Branch_5_1/src/common/forum/ForumMessageFactory.class.php 2011-03-31 16:42:13 UTC (rev 12960)
+++ branches/Branch_5_1/src/common/forum/ForumMessageFactory.class.php 2011-03-31 16:42:23 UTC (rev 12961)
@@ -221,9 +221,11 @@
}
$rows = db_numrows($result);
$this->fetched_rows=$rows;
- if (!$result || $rows < 1) {
- $this->setError('No Messages Found '.db_error());
+ if (!$result) {
+ $this->setError('Error when fetching messages '.db_error());
return false;
+ } else if ($rows < 1) {
+ $this->forum_messages = array();
} else {
while ($arr = db_fetch_array($result)) {
$this->forum_messages[] = new ForumMessage($this->Forum, $arr['msg_id'], $arr);
More information about the Fusionforge-commits
mailing list