mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Fix warnings in PHP 8.x
This commit is contained in:
parent
3138125eab
commit
a5ed417480
2 changed files with 3 additions and 2 deletions
|
|
@ -434,7 +434,8 @@ class FileModel extends File
|
|||
*/
|
||||
public static function getUploadConfig()
|
||||
{
|
||||
$config = self::getFileConfig(Context::get('module_srl') ?: Context::get('current_module_info')->module_srl);
|
||||
$module_srl = Context::get('module_srl') ?: (Context::get('current_module_info')->module_srl ?? 0);
|
||||
$config = self::getFileConfig($module_srl);
|
||||
if (Rhymix\Framework\Session::isAdmin())
|
||||
{
|
||||
$module_config = ModuleModel::getModuleConfig('file');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue