From: Mark A. Hershberger Date: Sat, 26 Aug 2017 16:53:44 +0000 (-0400) Subject: Installer: Fix "Array to string conversion" notice X-Git-Tag: 1.31.0-rc.0~2293 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=2c28f0a909a6e070b39ca449e4b1d2414208bf3d;p=lhc%2Fweb%2Fwiklou.git Installer: Fix "Array to string conversion" notice PHP Notice: Array to string conversion in .../includes/installer/Installer.php on line 1392 Follows-up fd8d75c1fd26e. Bug: T174258 Change-Id: I6f8497a74a83aec183684bcb441191c32c67ccde --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index ae80c8bb17..52be321f69 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1389,7 +1389,7 @@ abstract class Installer { } } closedir( $dh ); - natcasesort( $exts ); + uksort( $exts, 'strnatcasecmp' ); return $exts; }