diff --git a/inc/NWSProduct.class.php b/inc/NWSProduct.class.php index 169d55f..b41329a 100644 --- a/inc/NWSProduct.class.php +++ b/inc/NWSProduct.class.php @@ -68,7 +68,7 @@ function get_product_text() * @return boolean */ function can_relay() { - if((!empty($this->properties['vtec']) && $this->properties['vtec']['status'] == 'O') || !empty($this->properties['relay'])) { + if((!empty($this->properties['vtec']) && $this->properties['vtec']['status'] == 'O') && !empty($this->properties['relay'])) { return $this->properties['relay']; } else @@ -483,4 +483,4 @@ protected function get_expiry_from_vtec() { return null; } } -} \ No newline at end of file +}