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:
WDD-Marv
2017-05-04 16:36:54 +01:00
committed by Randy
parent 4760138204
commit 657fe27e9d

View File

@@ -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;
}
}
}