mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix warnings in PHP 8.x
This commit is contained in:
parent
5e6b3483e2
commit
5656189a19
3 changed files with 4 additions and 4 deletions
|
|
@ -706,8 +706,8 @@ class Context
|
||||||
*/
|
*/
|
||||||
public static function getFTPInfo()
|
public static function getFTPInfo()
|
||||||
{
|
{
|
||||||
$ftp_info = self::$_instance->db_info->ftp_info;
|
$ftp_info = self::$_instance->db_info->ftp_info ?? null;
|
||||||
if (!$ftp_info->ftp_user || !$ftp_info->ftp_root_path)
|
if (empty($ftp_info->ftp_user) || empty($ftp_info->ftp_root_path))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ class autoinstallModel extends autoinstall
|
||||||
function getRemoveUrlByPackageSrl($packageSrl)
|
function getRemoveUrlByPackageSrl($packageSrl)
|
||||||
{
|
{
|
||||||
$ftp_info = Context::getFTPInfo();
|
$ftp_info = Context::getFTPInfo();
|
||||||
if(!$ftp_info->ftp_root_path)
|
if(empty($ftp_info->ftp_root_path))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ class WidgetModel extends Widget
|
||||||
|
|
||||||
// get easyinstall need update
|
// get easyinstall need update
|
||||||
$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
|
$package = $oAutoinstallModel->getInstalledPackages($packageSrl);
|
||||||
$widget_info->need_update = $package[$packageSrl]->need_update;
|
$widget_info->need_update = $package[$packageSrl]->need_update ?? 'N';
|
||||||
|
|
||||||
// get easyinstall update url
|
// get easyinstall update url
|
||||||
if ($widget_info->need_update == 'Y')
|
if ($widget_info->need_update == 'Y')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue