fixed warning and deprecated errors

Dieser Commit ist enthalten in:
o.pinke 2022-04-03 15:33:34 +02:00
Ursprung b2f7798eee
Commit 100c60cc23
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -283,7 +283,7 @@ class Article extends Item
*/ */
public function getContent($type, $id = NULL) public function getContent($type, $id = NULL)
{ {
if ($type == '') { if (empty($type)) {
return 'Class ' . get_class($this) . ': content-type must be specified!'; return 'Class ' . get_class($this) . ': content-type must be specified!';
} }
@ -295,7 +295,7 @@ class Article extends Item
if (is_null($id)) { if (is_null($id)) {
// return Array // return Array
return $this->content[$type]; return (empty($this->content[$type]))?'':$this->content[$type];
} }
// return String // return String

Datei anzeigen

@ -225,7 +225,7 @@ class MetaTagCreatorHtml5 {
* @return boolean * @return boolean
*/ */
protected function _addFacebookMetaTags() { 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 // add always article data, cause they needed for fb-meta
if($this->_aConfig['add_article_meta'] === false) { if($this->_aConfig['add_article_meta'] === false) {
$this->_aConfig['add_article_meta'] = true; $this->_aConfig['add_article_meta'] = true;