[Fusionforge-commits] r9525 - trunk/gforge/common/forum

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


Author: aljeux
Date: 2010-04-19 20:02:42 +0200 (Mon, 19 Apr 2010)
New Revision: 9525

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

Modified: trunk/gforge/common/forum/ForumMessageFactory.class.php
===================================================================
--- trunk/gforge/common/forum/ForumMessageFactory.class.php	2010-04-19 18:02:36 UTC (rev 9524)
+++ trunk/gforge/common/forum/ForumMessageFactory.class.php	2010-04-19 18:02:42 UTC (rev 9525)
@@ -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