mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +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');
|
||||
|
|
|
|||
|
|
@ -530,7 +530,7 @@ class MemberAdminView extends Member
|
|||
$functionName = 'doDeleteImageMark';
|
||||
}
|
||||
|
||||
if($target->src)
|
||||
if(!empty($target->src))
|
||||
{
|
||||
$inputTag = sprintf('<input type="hidden" name="__%s_exist" value="true" /><span id="%s"><img src="%s" alt="%s" /> <button type="button" onclick="%s(%d);return false;">%s</button></span>',
|
||||
$formInfo->name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue