]> git.p6c8.net - devedit.git/blobdiff - modules/Command.pm
Don't create an incomplete HTML table if the root directory is empty or none of
[devedit.git] / modules / Command.pm
index e6491e7c9bc0db3f020c9d6dc5e660c11ef87e2b..2e8f93594b88591e8998fed09b0bfe002cfe956d 100644 (file)
@@ -6,7 +6,7 @@ package Command;
 # Execute Dev-Editor's commands
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
 # Execute Dev-Editor's commands
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-02-14
+# Last modified: 2005-02-28
 #
 
 use strict;
 #
 
 use strict;
@@ -207,6 +207,7 @@ sub exec_show($$)
   $tpl->fillin('FILTER',encode_entities($filter2));
   $tpl->fillin('FILTER_URL',escape($filter2));
 
   $tpl->fillin('FILTER',encode_entities($filter2));
   $tpl->fillin('FILTER_URL',escape($filter2));
 
+  $tpl->parse_if_block('empty',$dirlist eq '');
   $tpl->parse_if_block('dir_writeable',$dir_writeable);
   $tpl->parse_if_block('filter',$filter2);
   $tpl->parse_if_block('gmt',$config->{'use_gmt'});
   $tpl->parse_if_block('dir_writeable',$dir_writeable);
   $tpl->parse_if_block('filter',$filter2);
   $tpl->parse_if_block('gmt',$config->{'use_gmt'});

patrick-canterino.de