| @@ -33,18 +33,19 @@ | ||
| 33 | 33 | /** |
| 34 | 34 | * @return void |
| 35 | 35 | */ |
| 36 | 36 | protected function set_cache_key() { |
| 37 | - $this->cache_key = 'frm_style_templates_l' . ( ! empty( $this->license ) ? md5( $this->license ) : '' ); | |
| 37 | + $this->cache_key = 'frm_style_templates_l' . ( empty( $this->license ) ? '' : md5( $this->license ) ); | |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public function get_api_info() { |
| 41 | - return $this->fill_missing_style_settings( parent::get_api_info() ); | |
| 41 | + $api_info = parent::get_api_info(); | |
| 42 | + $api_info = $this->fill_missing_style_settings( $api_info ); | |
| 43 | + return $api_info; | |
| 42 | 44 | } |
| 43 | 45 | |
| 44 | 46 | /** |
| 45 | 47 | * @param array $api_info |
| 46 | - * | |
| 47 | 48 | * @return array |
| 48 | 49 | */ |
| 49 | 50 | private function fill_missing_style_settings( $api_info ) { |
| 50 | 51 | // Remove 'Styling Template' from titles. |