Skip to content

Commit

Permalink
[Update] fix a sp_pagebuilder component warning: Undefined array key …
Browse files Browse the repository at this point in the history
…'view'
  • Loading branch information
WuhuaChen committed Sep 8, 2022
1 parent f898175 commit b4220f1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Joomla3/lscache_plugin/components/com_sppagebuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function onRegisterEvents()
{
$app = JFactory::getApplication();
if(!$app->isAdmin()){
if($this->plugin->pageElements['view']!='page'){
if(isset ($this->plugin->pageElements['view']) && ( $this->plugin->pageElements['view']!='page')){
$this->plugin->pageCachable = false;
}
else{
Expand Down
Binary file modified Joomla3/package/lscache-latest.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Joomla4/lscache_plugin/components/com_sppagebuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function onRegisterEvents()
{
$app = JFactory::getApplication();
if(!$app->isClient('administrator')){
if($this->plugin->pageElements['view']!='page'){
if(isset ($this->plugin->pageElements['view']) && ( $this->plugin->pageElements['view']!='page')){
$this->plugin->pageCachable = false;
}
else{
Expand Down
Binary file modified Joomla4/package/lscache-latest.zip
Binary file not shown.

0 comments on commit b4220f1

Please sign in to comment.