From abe4bdd6aeb28566f3bca4385f110f6e7bf759d8 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 5 May 2016 10:52:58 +0200 Subject: [PATCH] fixup --- inc/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/api.php b/inc/api.php index 9483200e..b2d8adec 100644 --- a/inc/api.php +++ b/inc/api.php @@ -92,7 +92,7 @@ class Api { $dotPos = strrpos($file->file, '.'); $apiPost['ext'] = substr($file->file, $dotPos); $apiPost['tim'] = substr($file->file, 0, $dotPos); - if (isset ($file->hash) && $post->filehash) { + if (isset ($file->hash) && $file->hash) { $apiPost['md5'] = base64_encode(hex2bin($file->hash)); } else if (isset ($post->filehash) && $post->filehash) {