<hr>
-<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;">
-{DIRLIST}</table>
+{IF empty}<p><i>This directory is empty or nothing is matching against your wildcard</i></p>{ELSE}<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;">
+{DIRLIST}</table>{ENDIF}
<hr>
</tr>
{IF dir_writeable}
<tr>
-<td colspan="2"><a href="{SCRIPT}?command=upload&file={DIR}">Upload a file</a></td>
+<td colspan="2"><a href="{SCRIPT}?command=upload&file={DIR_URL}">Upload a file</a></td>
</tr>
{ENDIF}</table>