Skip to content

Commit

Permalink
Fix relay rules to ensure only operational products are sent
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwsmith committed Mar 9, 2016
1 parent 3dd90bc commit 1f5deca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/NWSProduct.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -483,4 +483,4 @@ protected function get_expiry_from_vtec() {
return null;
}
}
}
}

0 comments on commit 1f5deca

Please sign in to comment.