Skip to content

Commit

Permalink
Fix directory ref bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanegt committed May 2, 2018
1 parent 15a64ca commit e0c02e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -689,16 +689,16 @@ function previewImage(file)
// Awe, no pictures.
if($nxtdir) {
foreach($nxtdir as $dir) {
if($dir['name'])
echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true'></span> &nbsp;<a href='?dir=".$dir['full']."'>".$dir['name']."</a><br> ";
if($dir['name'] && $dir['name']!=".")
echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true'></span> &nbsp;<a href='?dir=".$dir['full']."'>".$dir['name']."</a><br> ";
}
}
} else {
if($nxtdir) {
echo "<p style='padding-bottom:6px;'>";
foreach($nxtdir as $dir) {
if($dir['name'])
echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true'></span> &nbsp;<a href='?dir=".$dir['full']."'>".$dir['name']."</a><br> ";
if($dir['name'] && $dir['name']!=".")
echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true'></span> &nbsp;<a href='?dir=".$dir['full']."'>".$dir['name']."</a><br> ";
}
echo "</p>";
}
Expand Down

0 comments on commit e0c02e0

Please sign in to comment.