Skip to content

Commit

Permalink
PHP 8.1 deprecation: strtolower()
Browse files Browse the repository at this point in the history
This should fix the message:

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in [..]/BaseController.php on line 712
  • Loading branch information
technik-kvz committed Feb 4, 2022
1 parent 8702d3b commit 556f0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/MVC/Controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ public function execute($task)
{
$this->task = $task;

$task = strtolower($task);
$task = (isset($task) && $task) ? strtolower($task) : '';

if (isset($this->taskMap[$task]))
{
Expand Down

0 comments on commit 556f0d9

Please sign in to comment.