Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 04:17 pm EDT

Geeklog Forums

Logic Error in WhatsNew Block


Status: offline

ByteEnable

Forum User
Full Member
Registered: 10/20/03
Posts: 138
Hi,

I found that the COM_whatsNew block has a logic error in the comments section

Text Formatted Code

for( $x = 1; $x <= $nrows; $x++ )

 


So, if you have a 1000 unique comments, its going to list a 1000 comments.


Byte
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by ByteEnable: So, if you have a 1000 unique comments, its going to list a 1000 comments.

Nope. You must have missed the LIMIT 15 in the SQL request that actually collects the comments.

bye, Dirk
 Quote

Status: offline

ByteEnable

Forum User
Full Member
Registered: 10/20/03
Posts: 138
Thanks! That was a big sql statement so I just breezed over it Byte
 Quote

All times are EDT. The time is now 04:17 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content