Add return if no local_channel()
This commit is contained in:
parent
3f06a857c2
commit
5bcc379530
@ -23,6 +23,8 @@ class Articles extends Controller {
|
|||||||
$channel = App::get_channel();
|
$channel = App::get_channel();
|
||||||
if($channel && $channel['channel_address'])
|
if($channel && $channel['channel_address'])
|
||||||
$which = $channel['channel_address'];
|
$which = $channel['channel_address'];
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user