User "Catrope" posted a comment on MediaWiki.r95449.
Full URL:
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:Code/MediaWiki/95449#c21472
Commit summary:
Allow update to be passed an empty array for the WHERE condition
Comment:
Shorter by using strict comparison:
<pre>
if ( $conds !== array() && $conds !== '*' ) {
</pre>
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview