mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix deprecation warnings for using trim() on null
This commit is contained in:
parent
33b58b5e77
commit
bdae876529
2 changed files with 7 additions and 7 deletions
|
|
@ -324,7 +324,7 @@ class CommentItem extends BaseObject
|
|||
|
||||
function isExistsHomepage()
|
||||
{
|
||||
if(trim($this->get('homepage')))
|
||||
if(trim($this->get('homepage') ?? ''))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
|
@ -334,7 +334,7 @@ class CommentItem extends BaseObject
|
|||
|
||||
function getHomepageUrl()
|
||||
{
|
||||
$url = trim($this->get('homepage'));
|
||||
$url = trim($this->get('homepage') ?? '');
|
||||
if(!$url)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue