* Don't die when single-element arrays are passed to SQL query constructors
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Mar 2008 23:08:19 +0000 (23:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Mar 2008 23:08:19 +0000 (23:08 +0000)
commit899f6440167d57f36fcafd6394a41fe67655e1e0
treecf1ebbc4596ed40965a38837c14fba345950cc7b
parent2666b3c035b01963fee50d4bddab4c97655f0264
* Don't die when single-element arrays are passed to SQL query constructors
  that have an array index other than 0

Since we don't enforce linear ordering of array keys on longer arrays, we
may as well not enforce it on single-element arrays either.
The freaky little Categoryfinder class was using different keys for its
arrays, which could cause a PHP notice and silent lookup failure when
only one ID was looked up.
RELEASE-NOTES
includes/Database.php