Installer: Fix "Array to string conversion" notice
authorMark A. Hershberger <mah@nichework.com>
Sat, 26 Aug 2017 16:53:44 +0000 (12:53 -0400)
committerLegoktm <legoktm@member.fsf.org>
Sat, 26 Aug 2017 19:58:35 +0000 (19:58 +0000)
PHP Notice: Array to string conversion in .../includes/installer/Installer.php on line 1392

Follows-up fd8d75c1fd26e.

Bug: T174258
Change-Id: I6f8497a74a83aec183684bcb441191c32c67ccde

includes/installer/Installer.php

index ae80c8b..52be321 100644 (file)
@@ -1389,7 +1389,7 @@ abstract class Installer {
                        }
                }
                closedir( $dh );
-               natcasesort( $exts );
+               uksort( $exts, 'strnatcasecmp' );
 
                return $exts;
        }