Skip to content

Commit

Permalink
Fix PHP 8.0 errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Dec 12, 2022
1 parent 655961d commit 75d0073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/classes/article.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ public function __construct($mode = 'admin')
*/
public function hasContent()
{
if (trim($this->_title) != '') {
if (!empty($this->_title) && (trim($this->_title) != '')) {
return true;
}
if (trim($this->_introtext) != '') {
if (!empty($this->_introtext) && (trim($this->_introtext) != '')) {
return true;
}
if (trim($this->_bodytext) != '') {
if (!empty($this->_bodytext) && (trim($this->_bodytext) != '')) {
return true;
}

Expand Down

0 comments on commit 75d0073

Please sign in to comment.