Skip to content

Commit 40b0ea6

Browse files
committed
Update AppClient.php
1 parent 7ea0e1b commit 40b0ea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Qiniu/Rtc/AppClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function createApp($hub, $title, $maxUsers = null, $noAutoKickUser = null
3333
if (!empty($maxUsers)) {
3434
$params['maxUsers'] = $maxUsers;
3535
}
36-
if (!empty($noAutoKickUser)) {
36+
if ($noAutoKickUser !== null) {
3737
$params['noAutoKickUser'] = $noAutoKickUser;
3838
}
3939
$body = json_encode($params);
@@ -65,7 +65,7 @@ public function updateApp($appId, $hub, $title, $maxUsers = null, $mergePublishR
6565
if (!empty($maxUsers)) {
6666
$params['maxUsers'] = $maxUsers;
6767
}
68-
if (!empty($noAutoKickUser)) {
68+
if ($noAutoKickUser !== null) {
6969
$params['noAutoKickUser'] = $noAutoKickUser;
7070
}
7171
if (!empty($mergePublishRtmp)) {

0 commit comments

Comments
 (0)