guard against internal errors when user is not logged in

This commit is contained in:
huangjx
2022-04-23 00:16:24 +08:00
parent 384cd08330
commit 31b7068b75
2 changed files with 10 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ class MainController extends Controller
public function __construct($appName, IRequest $request, $UserId, IL10N $IL10N, Aria2 $aria2, Youtube $youtube)
{
parent::__construct($appName, $request);
$this->appName = $appName;
$this->uid = $UserId;