Merge latest PHP8 changes to develop #31
|
@ -283,7 +283,7 @@ class Article extends Item
|
|||
*/
|
||||
public function getContent($type, $id = NULL)
|
||||
{
|
||||
if ($type == '') {
|
||||
if (empty($type)) {
|
||||
return 'Class ' . get_class($this) . ': content-type must be specified!';
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ class Article extends Item
|
|||
|
||||
if (is_null($id)) {
|
||||
// return Array
|
||||
return $this->content[$type];
|
||||
return (empty($this->content[$type]))?'':$this->content[$type];
|
||||
}
|
||||
|
||||
// return String
|
||||
|
|
|
@ -225,7 +225,7 @@ class MetaTagCreatorHtml5 {
|
|||
* @return boolean
|
||||
*/
|
||||
protected function _addFacebookMetaTags() {
|
||||
if(!$this->_aConfig['add_facebook_meta']) return;
|
||||
if(empty($this->_aConfig['add_facebook_meta'])) return;
|
||||
// add always article data, cause they needed for fb-meta
|
||||
if($this->_aConfig['add_article_meta'] === false) {
|
||||
$this->_aConfig['add_article_meta'] = true;
|
||||
|
|
Laden…
In neuem Issue referenzieren