| @@ -109,10 +109,9 @@ | ||
| 109 | 109 | public static function accountsByPattern($settings, $search_key, $search_pattern) { |
| 110 | 110 | $accounts = self::allAccounts($settings); |
| 111 | 111 | $accounts_by_pattern = array(); |
| 112 | 112 | foreach ($accounts as $pubkey => $value) { |
| 113 | - if (array_key_exists($search_key, $value) && | |
| 114 | - WPRHelper::safePregMatch($search_pattern, $value[$search_key]) == 1) { | |
| 113 | + if (array_key_exists($search_key, $value) && preg_match($search_pattern, $value[$search_key]) == 1) { | |
| 115 | 114 | $accounts_by_pattern[$pubkey] = $value; |
| 116 | 115 | } |
| 117 | 116 | } |
| 118 | 117 | return $accounts_by_pattern; |