Commit 4192f54a authored by merlinofchaos's avatar merlinofchaos
Browse files

Sync file from HEAD to prevent crash behavior

parent 118515fd
......@@ -239,6 +239,8 @@ function _views_get_default_views() {
* sort callback
*/
function _views_sort_arrays($a, $b) {
$a = (array) $a; // safety -- something send objects.
$b = (array) $b;
if ($a['weight'] == $b['weight']) {
if ($a['name'] == $b['name']) {
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment