| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | * @return string |
| 174 | 174 | */ |
| 175 | 175 | public function get_pubkey() { |
| 176 | 176 | $key = $this->get_key_for_pubkey(); |
| 177 | - return $this->frm_settings->$key ?? ''; | |
| 177 | + return isset( $this->frm_settings->$key ) ? $this->frm_settings->$key : ''; | |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * Check if the public key is not empty. |