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

(cherry picked from commit 3f06a857c2)
This commit is contained in:
DM42.Net (Matt Dent) 2018-12-14 14:55:27 +00:00 committed by Mario
parent d7c7ff1c12
commit 8323458da9

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);