FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » I am afraid i have a problem (I get this error when i want to change the forum display order)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: I am afraid i have a problem [message #166464 is a reply to message #166463] Thu, 15 December 2011 13:32 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Fix @ http://fudforum.svn.sourceforge.net/fudforum/?rev=5410&view=rev

EDIT: The diff doesn't show the spaces added on line 127. The patch is:
--- admforum.php	(revision 5350)
+++ admforum.php	(revision 5410)
@@ -124,7 +124,7 @@
 	if (isset($_GET['o'], $_GET['ot'])) {
 		if (in_array($_GET['ot'], array('name', 'descr', 'date_created'))) {
 			$i = 0;
-			$r = q('SELECT id FROM '. $tbl .'forum WHERE cat_id='. $cat_id .' ORDER BY '. $_GET['ot'] . ((int)$_GET['o'] ? 'ASC' : 'DESC'));
+			$r = q('SELECT id FROM '. $tbl .'forum WHERE cat_id='. $cat_id .' ORDER BY '. $_GET['ot'] . ((int)$_GET['o'] ? ' ASC' : ' DESC'));
 			while ($o = db_rowarr($r)) {
 				q('UPDATE '. $tbl .'forum SET view_order='. ++$i .' WHERE id='. $o[0]);
 			}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: No IMAP option in maillist manager
Next Topic: upgrade to 3.03 failed - "an error occurred while processing this directive"
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 20:52:43 GMT 2024

Total time taken to generate the page: 0.04244 seconds