Skip to content

Commit

Permalink
Protect against strpos needle errors in PHP 7.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 15, 2023
1 parent c15c820 commit c23f4c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Horde/Autoloader/ClassPathMapper/PrefixString.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class Horde_Autoloader_ClassPathMapper_PrefixString
public function __construct($prefix, $includePath)
{
$this->_includePath = $includePath;
if ($prefix == null) {
$prefix = '';
}
$this->_prefix = $prefix;
}

Expand Down

0 comments on commit c23f4c3

Please sign in to comment.