Skip to content

Commit

Permalink
fix in the getFieldOrder function
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuget committed Sep 13, 2011
1 parent 0710bbf commit 4194f18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions get-custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ function getFieldOrder($field_name,$group=1,$post_id=NULL){
$order[] = $element['field_count'];
}

if( !isset($order) || is_null($order) ) {
return array();
}

$order = array_reverse($order);
sort($order);

Expand Down

0 comments on commit 4194f18

Please sign in to comment.