use p() for the output and not for the comparison

This commit is contained in:
Björn Schießle 2013-03-04 12:01:45 +01:00
parent 36a1bcb732
commit 52919fa94b
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
$directory = str_replace('%2F', '/', $directory); ?>
<tr data-id="<?php p($file['fileid']); ?>"
data-file="<?php p($name);?>"
data-type="<?php p($file['type'] == 'dir')?'dir':'file'?>"
data-type="<?php ($file['type'] == 'dir')?p('dir'):p('file')?>"
data-mime="<?php p($file['mimetype'])?>"
data-size='<?php p($file['size']);?>'
data-permissions='<?php p($file['permissions']); ?>'>