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

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

parent 6104817b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<strong><? write(file.name); ?></strong> (<? write(file.size); ?>) <strong><? write(file.name); ?></strong> (<? write(file.size); ?>)
<p><em>Uploaded <? write(system.timestr(file.uldate)); ?></em></p> <p><em>Uploaded <? write(system.timestr(file.uldate)); ?></em></p>
<?xjs if (typeof file.extdesc === 'undefined') { ?> <?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) { ?> <?xjs } else if (file.extdesc.search(/(\x1B\[|[\xA8-\xFE])|\x01/) > -1) { ?>
<pre class="ansi"><? write(html_encode(file.extdesc, true, false, true, true)); ?></pre> <pre class="ansi"><? write(html_encode(file.extdesc, true, false, true, true)); ?></pre>
<?xjs } else { ?> <?xjs } else { ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment