fix nullsafe warning
This commit is contained in:
parent
a036d037ac
commit
4afb4d73c2
@ -37,6 +37,8 @@ class My
|
||||
*/
|
||||
public static function name(): string
|
||||
{
|
||||
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
|
||||
$name = dcCore::app()->plugins->moduleInfo(self::id(), 'name');
|
||||
|
||||
return __(is_string($name) ? $name : self::id());
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ class Prepend extends dcNsProcess
|
||||
}
|
||||
|
||||
// Use visible redirection
|
||||
if ($redir) {
|
||||
if ($redir && !is_null(dcCore::app()->blog)) {
|
||||
Http::redirect(dcCore::app()->blog->url . $part);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user