Skip to content
Snippets Groups Projects
Commit ab8bbf48 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the "undefined" display when a file has no description.

parent afe4be0c
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@
<strong><? write(file.name); ?></strong> (<? write(file.size); ?>)
<p><em>Uploaded <? write(system.timestr(file.uldate)); ?></em></p>
<?xjs if (typeof file.extdesc === 'undefined') { ?>
<p><? write(file.desc); ?></p>
<p><? if (file.desc !== undefined) write(file.desc); ?></p>
<?xjs } else if (file.extdesc.search(/(\x1B\[|[\xA8-\xFE])|\x01/) > -1) { ?>
<pre class="ansi"><? write(html_encode(file.extdesc, true, false, true, true)); ?></pre>
<?xjs } else { ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment