ARTICLES MODULE: Default to local_channel() user when no argv(1) is passed.

This commit is contained in:
DM42.Net (Matt Dent) 2018-12-14 09:55:27 -05:00
parent f81a3ba45d
commit 3f06a857c2

View File

@ -17,8 +17,14 @@ class Articles extends Controller {
if(argc() > 1)
$which = argv(1);
else
return;
if(! $which) {
if(local_channel()) {
$channel = App::get_channel();
if($channel && $channel['channel_address'])
$which = $channel['channel_address'];
}
}
profile_load($which);