diff options
| author | lsces <lester@lsces.co.uk> | 2026-02-01 15:36:28 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-02-01 15:36:28 +0000 |
| commit | 61520452471167acb48c9f80b220eb7f08518584 (patch) | |
| tree | a7c27e14292563772c28dcc7f74eae53ed0ddc0f /includes | |
| parent | 58e43452fc894294b29f66ba60f3a41d5123e1fa (diff) | |
| download | liberty-61520452471167acb48c9f80b220eb7f08518584.tar.gz liberty-61520452471167acb48c9f80b220eb7f08518584.tar.bz2 liberty-61520452471167acb48c9f80b220eb7f08518584.zip | |
Tidy to php8.4, add default values
Diffstat (limited to 'includes')
| -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 b025c14..5a547d7 100755 --- a/includes/classes/LibertyContent.php +++ b/includes/classes/LibertyContent.php @@ -3184,8 +3184,8 @@ class LibertyContent extends LibertyBase implements BitCacheable { LEFT OUTER JOIN `".BIT_DB_PREFIX."liberty_content_data` lcds ON (lc.`content_id` = lcds.`content_id` AND lcds.`data_type`='summary') WHERE lc.`content_id` = ?" ; $res = $gBitSystem->mDb->getRow($sql, [ $pContentId ]); - if (!(isset($this->mInfo['no_index']) and $this->mInfo['no_index'] == true)) { - $this->mInfo['index_data'] = $res["title"] . " " . $res["data"] . " " . $res["login"] . " " . $res["real_name"] ; + if ( isset($res["title"] ) and !(isset($this->mInfo['no_index']) and $this->mInfo['no_index'] == true)) { + $this->mInfo['index_data'] = $res["title"] . " " . $res["data"] . " " . $res["login"] . " " . $res["real_name"]; } } |
