built-in function. Worked fine on my machine, killed the server on another.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1003
7612ce4b-ef26-0410-bec9-
ea0150e637f0
+
+ /* Apparently you must call a user function with usort instead
+ * of calling a built-in directly. Stupid.
+ * Patch from dave_michmerhuizen@yahoo.com
+ * Allows case insensitivity when sorting folders
+ */
+ function user_strcasecmp($a, $b)
+ {
+ return strcasecmp($a, $b);
+ }
/******************************************************************************
/******************************************************************************
}
$sorted_lsub_ary = $new_ary;
if (isset($sorted_lsub_ary)) {
}
$sorted_lsub_ary = $new_ary;
if (isset($sorted_lsub_ary)) {
- usort($sorted_lsub_ary, "strcasecmp");
+ usort($sorted_lsub_ary, "user_strcasecmp");
//sort($sorted_lsub_ary);
}
//sort($sorted_lsub_ary);
}