Skip to content

Commit

Permalink
Fixed E_DEPRECATED in Mage/GoogleAnalytics/Block/Ga.php (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiatng authored and fballiano committed Feb 22, 2023
1 parent a7be24c commit 75fac8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/GoogleAnalytics/Block/Ga.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public function getAccount()
/**
* Get a specific page name (may be customized via layout)
*
* @return string|null
* @return string
*/
public function getPageName()
{
return $this->_getData('page_name');
return $this->_getData('page_name') ?? '';
}

/**
Expand Down

0 comments on commit 75fac8a

Please sign in to comment.