Commit 37e1527a authored by Dan Chadwick's avatar Dan Chadwick
Browse files

Issue #2458025 by DanChadwick: Degenerate webform with no components on first page causes warnings

parent 10f79f80
Loading
Loading
Loading
Loading
+3 −2
Changes for includes/webform.webformconditionals.inc: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -66,8 +66,9 @@ class WebformConditionals {
    // Generate T-Orders for each page
    $new_entry = array('in' => array(), 'out' => array(), 'rgid' => -1);
    $page_num = 0;
    $sorted = array();
    $page_map = array();
    // If the first component is a page break, then no component is on page 1. Create empty arrays for page 1.
    $sorted = array(1 => array());
    $page_map = array(1 => array());
    $component = reset($components);
    while ($component) {
      $cid = $component['cid'];