diff --git a/apps/models/form/TorrentUploadForm.php b/apps/models/form/TorrentUploadForm.php index d97fb26..38c23e2 100644 --- a/apps/models/form/TorrentUploadForm.php +++ b/apps/models/form/TorrentUploadForm.php @@ -293,7 +293,7 @@ private function checkTorrentDict($dict, $key, $type = null) if (!is_array($dict)) throw new ParseErrorException("std_not_a_dictionary"); $value = $dict[$key]; - if (!$value) throw new ParseErrorException("std_dictionary_is_missing_key"); + if (!isset($value)) throw new ParseErrorException("std_dictionary_is_missing_key"); if (!is_null($type)) { $isFunction = 'is_' . $type;