From 23f7f60bf7b15ca5332803ca1e24280489042b7a Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 14 Jun 2015 15:59:11 -0700 Subject: make new os_storage flag work --- mod/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/attach.php') diff --git a/mod/attach.php b/mod/attach.php index 118c67dd5..ad5dead07 100644 --- a/mod/attach.php +++ b/mod/attach.php @@ -35,7 +35,7 @@ function attach_init(&$a) { } header('Content-disposition: attachment; filename="' . $r['data']['filename'] . '"'); - if($r['data']['flags'] & ATTACH_FLAG_OS ) { + if(intval($r['data']['os_storage'])) { $fname = dbunescbin($r['data']['data']); $istream = fopen('store/' . $c[0]['channel_address'] . '/' . $fname,'rb'); $ostream = fopen('php://output','wb'); -- cgit v1.2.3