Permalink
Browse files

fix in the getFieldOrder function

  • Loading branch information...
1 parent 0710bbf commit 4194f188adc2d8e556b056138b5b14112a195b27 @gnuget gnuget committed Sep 13, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 get-custom.php
View
@@ -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);

0 comments on commit 4194f18

Please sign in to comment.