|
@@ -156,7 +156,7 @@ class AppController extends Controller
|
|
|
if(!empty($phone)) {
|
|
|
$channel = new ChannelService();
|
|
|
$distribution_channels = $channel->getChannelsByChannelUserIds([],$is_enable,$phone);
|
|
|
- if(!$distribution_channels->isEmpty()){
|
|
|
+ if($distribution_channels){
|
|
|
$distribution_channels = $distribution_channels->toArray();
|
|
|
$this->channel_ids = array_column($distribution_channels,'id');
|
|
|
}
|