diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 17:37:00 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 17:37:00 +0000 |
| commit | d5623525391b6f74ef8297f4fadeeccc58702590 (patch) | |
| tree | bea17a2b773e0a10d4f28b2e7f184b009bf3d243 /includes/classes | |
| parent | 9feb175cd2af3081358abb49c352c6ae1539bda3 (diff) | |
| download | liberty-d5623525391b6f74ef8297f4fadeeccc58702590.tar.gz liberty-d5623525391b6f74ef8297f4fadeeccc58702590.tar.bz2 liberty-d5623525391b6f74ef8297f4fadeeccc58702590.zip | |
Empty value corrections
Diffstat (limited to 'includes/classes')
| -rwxr-xr-x | includes/classes/LibertyContent.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/classes/LibertyContent.php b/includes/classes/LibertyContent.php index 5a547d7..1424e61 100755 --- a/includes/classes/LibertyContent.php +++ b/includes/classes/LibertyContent.php @@ -1943,7 +1943,7 @@ class LibertyContent extends LibertyBase implements BitCacheable { * @return string Descriptive title for the page */ public static function getTitleFromHash( &$pHash, $pDefault=true ) { - $ret = null; + $ret = ''; if( !empty( $pHash['title'] ) ) { $ret = $pHash['title']; } elseif( $pDefault && !empty( $pHash['content_name'] ) ) { @@ -2286,7 +2286,7 @@ class LibertyContent extends LibertyBase implements BitCacheable { } - public function getThumbnailUri( $pSize='small' ) { + public function getThumbnailUri( string $pSize='small' ) { if( $this->isValid() ) { return $this->getThumbnailUriFromHash( $this->mInfo, $pSize ); } |
