Permalink
Browse files

Fixed uasort-error on empty region

  • Loading branch information...
hugowetterberg committed Feb 8, 2009
1 parent e2253a6 commit 48a6c3d411d3530b233d9c36b105c307e3ee8daa
Showing with 3 additions and 1 deletion.
  1. +3 −1 nodeformcols.admin.inc
View
@@ -111,7 +111,9 @@ function _nodeformcols_configuration_form_after_build($form) {
$regions = nodeformcols_form_regions();
foreach ($regions as $region => $title) {
- uasort($form['conf'][$region], "element_sort");
+ if (is_array($form['conf'][$region])) {
+ uasort($form['conf'][$region], "element_sort");
+ }
drupal_add_tabledrag('fields', 'match', 'sibling', 'field-region-select', 'field-region-'. $region, NULL, FALSE);
drupal_add_tabledrag('fields', 'order', 'sibling', 'field-weight', 'field-weight-'. $region);
}

0 comments on commit 48a6c3d

Please sign in to comment.