Skip to content

Commit

Permalink
[4] cannot pass null to trim function in php 8.1 (joomla#36281)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored Dec 11, 2021
1 parent f305dd9 commit 3afb594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Uri/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static function base($pathonly = false)
{
$config = Factory::getContainer()->get('config');
$uri = static::getInstance();
$live_site = ($uri->isSsl()) ? str_replace('http://', 'https://', $config->get('live_site')) : $config->get('live_site');
$live_site = ($uri->isSsl()) ? str_replace('http://', 'https://', $config->get('live_site', '')) : $config->get('live_site', '');

if (trim($live_site) != '')
{
Expand Down

0 comments on commit 3afb594

Please sign in to comment.