]> granicus.if.org Git - php/commitdiff
(PHP array_multisort) Fix the array_size test.
authorAndrei Zmievski <andrei@php.net>
Thu, 18 May 2000 12:29:45 +0000 (12:29 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 18 May 2000 12:29:45 +0000 (12:29 +0000)
ext/standard/array.c

index a76163dcf7369eb656615737987891986e6ae17e..881bde17dc26882d1c79dcc6c564e722726b994e 100644 (file)
@@ -2227,7 +2227,7 @@ PHP_FUNCTION(array_multisort)
 
        /* If all arrays are empty or have only one entry,
           we don't need to do anything. */
-       if (array_size < 1) {
+       if (array_size <= 1) {
                efree(ARRAYG(multisort_flags));
                efree(arrays);
                efree(args);