[Fusionforge-commits] r9523 - branches/Branch_5_0/gforge/common/forum

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Apr 19 20:01:50 CEST 2010


Author: aljeux
Date: 2010-04-19 20:01:50 +0200 (Mon, 19 Apr 2010)
New Revision: 9523

Modified:
   branches/Branch_5_0/gforge/common/forum/ForumMessageFactory.class.php
Log:
Fix broken thread view in forums (wrong integer check)

Modified: branches/Branch_5_0/gforge/common/forum/ForumMessageFactory.class.php
===================================================================
--- branches/Branch_5_0/gforge/common/forum/ForumMessageFactory.class.php	2010-04-19 18:01:42 UTC (rev 9522)
+++ branches/Branch_5_0/gforge/common/forum/ForumMessageFactory.class.php	2010-04-19 18:01:50 UTC (rev 9523)
@@ -160,7 +160,7 @@
 		if ($this->forum_messages) {
 			return $this->forum_messages;
 		}
-		if (isset ($thread_id) && is_int ($thread_id)) {
+		if (isset ($thread_id) && is_numeric($thread_id)) {
 			$result = db_query_params ('SELECT * FROM forum_user_vw 
 		WHERE group_forum_id=$1
                   AND thread_id=$2
@@ -200,7 +200,7 @@
 		if ($this->forum_messages) {
 			return $this->forum_messages;
 		}
-		if (isset ($thread_id) && is_int ($thread_id)) {
+		if (isset ($thread_id) && is_numeric($thread_id)) {
 			$result = db_query_params ('SELECT * FROM forum_user_vw 
 		WHERE group_forum_id=$1
                   AND thread_id=$2
@@ -239,7 +239,7 @@
 		if ($this->forum_messages) {
 			return $this->forum_messages;
 		}
-		if (isset ($thread_id) && is_int ($thread_id)) {
+		if (isset ($thread_id) && is_numeric($thread_id)) {
 			$result = db_query_params ('SELECT * FROM forum_user_vw 
 		WHERE group_forum_id=$1
                   AND thread_id=$2




More information about the Fusionforge-commits mailing list