aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/api.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/api.php b/include/api.php
index da612b2b2..b8e0582a6 100644
--- a/include/api.php
+++ b/include/api.php
@@ -636,9 +636,7 @@ require_once('include/attach.php');
);
if($r) {
$data = dbunescbin($r[0]['data']);
- if($r[0]['flags'] & ATTACH_FLAG_DIR)
- $r[0]['is_dir'] = '1';
- if($r[0]['flags'] & ATTACH_FLAG_OS)
+ if(intval($r[0]['os_storage']))
$r[0]['data'] = base64_encode(file_get_contents(dbunescbin($r[0]['data'])));
else
$r[0]['data'] = base64_encode(dbunescbin($r[0]['data']));