User "Reedy" posted a comment on MediaWiki.r95449.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95449#c21471
Commit summary:
Allow update to be passed an empty array for the WHERE condition
Comment:
The idea was to not build a WHERE if $conds is passed in as an empty array.
You're right though, that array() != '*'...
Swap it for?
<pre>
if ( ( is_array( $conds ) && count( $conds ) ) || ( is_string( $conds ) &&
$conds != '*' ) {
</pre>
:/
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview