fixup
This commit is contained in:
parent
38bf3276e4
commit
abe4bdd6ae
@ -92,7 +92,7 @@ class Api {
|
|||||||
$dotPos = strrpos($file->file, '.');
|
$dotPos = strrpos($file->file, '.');
|
||||||
$apiPost['ext'] = substr($file->file, $dotPos);
|
$apiPost['ext'] = substr($file->file, $dotPos);
|
||||||
$apiPost['tim'] = substr($file->file, 0, $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));
|
$apiPost['md5'] = base64_encode(hex2bin($file->hash));
|
||||||
}
|
}
|
||||||
else if (isset ($post->filehash) && $post->filehash) {
|
else if (isset ($post->filehash) && $post->filehash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user