diff options
Diffstat (limited to 'server/helpers/custom-validators/videos.js')
-rw-r--r-- | server/helpers/custom-validators/videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js index 8dabb828d..196731e04 100644 --- a/server/helpers/custom-validators/videos.js +++ b/server/helpers/custom-validators/videos.js | |||
@@ -53,7 +53,7 @@ function isVideoLicenceValid (value) { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | function isVideoLanguageValid (value) { | 55 | function isVideoLanguageValid (value) { |
56 | return constants.VIDEO_LANGUAGES[value] !== undefined | 56 | return value === null || constants.VIDEO_LANGUAGES[value] !== undefined |
57 | } | 57 | } |
58 | 58 | ||
59 | function isVideoNSFWValid (value) { | 59 | function isVideoNSFWValid (value) { |