Don't show map entries if no map defined
authorJamie Cameron <jcameron@webmin.com>
Sat, 12 Feb 2011 21:26:05 +0000 (13:26 -0800)
committerJamie Cameron <jcameron@webmin.com>
Sat, 12 Feb 2011 21:26:05 +0000 (13:26 -0800)
postfix/virtual.cgi

index c229a14..9891c73 100755 (executable)
@@ -30,7 +30,7 @@ print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
 
 # Current map contents
 print &ui_hr();
-if (&get_current_value($virtual_maps) eq "")
+if (&get_real_value($virtual_maps) eq "")
 {
     print ($text{'no_map'}."<br><br>");
 }