Commit c39461b8 authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

Fixed a bug checking mode 0 on the api

1 merge request!295Feat/closed channels 602
Pipeline #77653239 passed with stages
in 10 minutes and 7 seconds
......@@ -243,7 +243,7 @@ class channel implements Interfaces\Api
}
}
if ($_POST['mode'] && ChannelMode::isValid($_POST['mode'])) {
if (isset($_POST['mode']) && ChannelMode::isValid($_POST['mode'])) {
$update['mode'] = $_POST['mode'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment