Skip to content

Commit

Permalink
Update view.html.php
Browse files Browse the repository at this point in the history
Fixing Notices of PHP 8.1 like
"**Deprecated**: Passing null to parameter Octopoos#1 ($string) of type string is deprecated"
  • Loading branch information
Ilya-Zhulin authored Nov 24, 2023
1 parent 94471ce commit 0f1d4a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/com_cck/views/list/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function prepareDisplay( $preconfig )
$view = $this->getName();

$limitstart = $this->state->get( 'limitstart' );
$live = urldecode( $params->get( 'live' ) );
$live = urldecode( $params->get( 'live', '' ) );
$order_by = $params->get( 'order_by', '' );
$variation = $params->get( 'variation' );

Expand Down Expand Up @@ -100,10 +100,10 @@ protected function prepareDisplay( $preconfig )
if ( $params->get( 'menu-meta_keywords' ) ) {
$this->document->setMetadata( 'keywords', $params->get('menu-meta_keywords' ) );
}
if ( $params->get( 'robots' ) ) {
$this->document->setMetadata( 'robots', $params->get( 'robots' ) );
if ( strlen(trim($params->get( 'robots', '' ))) > 0 ) {
$this->document->setMetadata( 'robots', $params->get( 'robots', '' ) );
}
$this->pageclass_sfx = htmlspecialchars( $params->get( 'pageclass_sfx' ) );
$this->pageclass_sfx = htmlspecialchars( $params->get( 'pageclass_sfx', '' ) );
$this->raw_rendering = $params->get( 'raw_rendering', 0 );

// Pagination
Expand Down Expand Up @@ -303,4 +303,4 @@ protected function prepareDisplay( $preconfig )
}
}
}
?>
?>

0 comments on commit 0f1d4a9

Please sign in to comment.