alecpl
2011-10-18 2df4a9a29cdab38c314c66697da2e3aa60ee91b8
- Hide contact tabs with no content


1 files modified
6 ■■■■ changed files
program/steps/addressbook/func.inc 6 ●●●● patch | view | raw | blame | history
program/steps/addressbook/func.inc
@@ -662,6 +662,9 @@
                  $rows);
            }
            if (empty($content))
                continue;
            // also render add-field selector
            if ($edit_mode)
                $content .= html::p('addfield', $select_add->show(null, array('style' => $select_add->_count ? null : 'display:none')));
@@ -672,7 +675,8 @@
            $content = $fieldset['content'];
        }
        $out .= html::tag('fieldset', null, html::tag('legend', null, Q($fieldset['name'])) . $content) ."\n";
        if ($content)
            $out .= html::tag('fieldset', null, html::tag('legend', null, Q($fieldset['name'])) . $content) ."\n";
    }
    if ($edit_mode) {