forked from LiveCarta/PayPal-PHP-SDK
negating E_WARNING for strstr(): Empty needle in PayPalConfigManager.php
E_WARNING strstr(): Empty needle (#831) * negating E_WARNING for "strstr(): Empty needle"
This commit is contained in:
@@ -99,9 +99,11 @@ class PayPalConfigManager
|
||||
return $this->configs[$searchKey];
|
||||
} else {
|
||||
$arr = array();
|
||||
foreach ($this->configs as $k => $v) {
|
||||
if (strstr($k, $searchKey)) {
|
||||
$arr[$k] = $v;
|
||||
if ($searchKey !== '') {
|
||||
foreach ($this->configs as $k => $v) {
|
||||
if (strstr($k, $searchKey)) {
|
||||
$arr[$k] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user