diff --git a/modules/ssl/classes/model/service/plugin/ssl.php b/modules/ssl/classes/model/service/plugin/ssl.php index abb57b50..637f5957 100644 --- a/modules/ssl/classes/model/service/plugin/ssl.php +++ b/modules/ssl/classes/model/service/plugin/ssl.php @@ -20,7 +20,6 @@ class Model_Service_Plugin_SSL extends Model_Service_Plugin { ); protected $_has_one = array( 'ssl_ca'=>array('far_key'=>'ssl_ca_id','foreign_key'=>'id'), - 'ssl'=>array('far_key'=>'ssl_id','foreign_key'=>'id'), ); protected $_display_filters = array( @@ -99,7 +98,7 @@ class Model_Service_Plugin_SSL extends Model_Service_Plugin { } public function download_button() { - if (! $this->service->active OR ! preg_match('/client/',$this->ssl->extensions) OR $this->valid_to() < time()) + if (! $this->service->active OR ! preg_match('/client/',$this->service->product->plugin()->extensions) OR $this->valid_to() < time()) return ''; // @todo Do some password validation