In wfArrayDiff2_cmp only compare $a and $b as string if they both are strings
authorReedy <reedy@wikimedia.org>
Fri, 27 Sep 2013 19:10:33 +0000 (20:10 +0100)
committerReedy <reedy@wikimedia.org>
Fri, 27 Sep 2013 19:15:21 +0000 (20:15 +0100)
commit994bf115a78e5202612359066c5c1636a7df0d9b
treef48d7bbcc9a87cde2f4a16565e0cb5f0a2a05891
parentd2ad05aae9e6d931dc138b7d8cdc39758b77b318
In wfArrayDiff2_cmp only compare $a and $b as string if they both are strings

Noticed during bug 54662

Warning: strcmp() expects parameter 2 to be string, array given in
/usr/local/apache/common-local/php-1.22wmf19/includes/GlobalFunctions.php on
line 127

Bug: 54662
Change-Id: Icdd7fa229e49d7e83aa2a7992895f497806448e1
includes/GlobalFunctions.php