Make default params to CategoryViewer usable as defaults.
authorOri Livneh <ori@wikimedia.org>
Sat, 2 Mar 2013 00:34:09 +0000 (16:34 -0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 6 Mar 2013 08:40:52 +0000 (08:40 +0000)
commit538014185ac0ebdbc67decb8c958eab81c4ed558
treec4bfb1bb8f1707fd3799ab6e4096c4188a8c799c
parent90797afe5366458d37046c34f3a2583aade361f5
Make default params to CategoryViewer usable as defaults.

If the '$from' and '$to' parameters to the CategoryViewer constructor are left
off, they default to empty arrays. This makes later checks for $from['page'],
etc. issue an 'Undefined index' notice.

Using 'empty' would be more concise but could hide bugs.

Change-Id: I78793d13745d1fc1010b8e6861bdc3a89a39a87f
includes/CategoryViewer.php