You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with a query result, the functions next_row and previous_row when called continually, never stop. When it gets to the end of the rows from the database, next_row just keeps returning the last row over and over.
It means some code like: while ( $row = $query->next_row() ) {} causes an infinite loop. (My code was a bit more complex, but it did essentially boil down to that.)
When there are no more results, shouldn't it return false or null ?
The text was updated successfully, but these errors were encountered:
Working with a query result, the functions
next_row
andprevious_row
when called continually, never stop. When it gets to the end of the rows from the database,next_row
just keeps returning the last row over and over.It means some code like:
while ( $row = $query->next_row() ) {}
causes an infinite loop. (My code was a bit more complex, but it did essentially boil down to that.)When there are no more results, shouldn't it return
false
ornull
?The text was updated successfully, but these errors were encountered: