RT# 77470 - Fixed error with select reason drop down box, not working when no pre_opt...
[freeside.git] / httemplate / elements / tr-select-reason.html
index 6f126d3..a4e0c03 100755 (executable)
@@ -220,7 +220,7 @@ my @reasons = qsearch({
 
 
 my @pre_options = ( 0 => 'Select reason...' );
-@pre_options = @{ $opt{'pre_options'} if $opt{'pre_options'} };
+@pre_options = @{ $opt{'pre_options'} } if $opt{'pre_options'};
 
 my @post_options;
 if ( $curuser->access_right($add_access_right) && !$hide_addnew ) {