| @@ -150,9 +150,9 @@ | ||
| 150 | 150 | return $status; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | public static function validate($key) { |
| 154 | - return $key && strlen($key) >= 32; | |
| 154 | + return is_string($key) && strlen($key) >= 32; | |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | public static function find($settings, $pubkey, $tag = null) { |
| 158 | 158 | if (!self::validate($pubkey)) { |