summaryrefslogtreecommitdiff
path: root/httemplate/edit/elements/class_Common.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/elements/class_Common.html')
-rw-r--r--httemplate/edit/elements/class_Common.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/elements/class_Common.html b/httemplate/edit/elements/class_Common.html
index b5f493991..2daf0e77f 100644
--- a/httemplate/edit/elements/class_Common.html
+++ b/httemplate/edit/elements/class_Common.html
@@ -26,7 +26,11 @@ die "access denied"
my %opt = @_;
my $table = $opt{'table'};
+
+my @category;
+unless ( $opt{'nocat'} ) {
( my $category_table = $table ) =~ s/class/category/ or die;
+ @category = qsearch($category_table, { 'disabled' => '' });
+}
-my @category = qsearch($category_table, { 'disabled' => '' });
</%init>