--- loncom/interface/portfolio.pm 2004/09/10 20:31:35 1.44 +++ loncom/interface/portfolio.pm 2004/09/10 20:48:33 1.45 @@ -74,7 +74,7 @@ sub display_directory { &Apache::lonhtmlcommon::select_recent('portfolio','currentpath', 'this.form.submit();')); $r->print(""); - if ($is_empty) { + if ($is_empty && ($current_path ne '/')) { $displayOut = '
'. ''. ''. @@ -379,7 +379,7 @@ sub handler { my @dir_list=&Apache::lonnet::dirlist($current_path, $ENV{'user.domain'}, $ENV{'user.name'},$portfolio_root); - if (@dir_list[0] eq 'no_such_dir'){ + if ($dir_list[0] eq 'no_such_dir'){ # two main reasons for this: 1) never been here, so directory structure not created # 2) back-button navigation after deleting a directory if ($current_path eq '/'){