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];
|
return $this->configs[$searchKey];
|
||||||
} else {
|
} else {
|
||||||
$arr = array();
|
$arr = array();
|
||||||
foreach ($this->configs as $k => $v) {
|
if ($searchKey !== '') {
|
||||||
if (strstr($k, $searchKey)) {
|
foreach ($this->configs as $k => $v) {
|
||||||
$arr[$k] = $v;
|
if (strstr($k, $searchKey)) {
|
||||||
|
$arr[$k] = $v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user