https://bugzilla.wikimedia.org/show_bug.cgi?id=51115

--- Comment #3 from Sam Reed (reedy) <[email protected]> ---
(In reply to comment #0)
> This is the result of attempting to use a foreach on a database result
> object.  
> 
> The correct way would be to use:
> while ($row = $dbr->fetchObject($res)) { ... }

No, that isn't the correct way.

https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Assignment_expressions

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to