Skip to content

Commit

Permalink
Merge pull request tokudu#1 from yudiervv/patch-1
Browse files Browse the repository at this point in the history
Update SAM/MQTT/sam_mqtt.php
  • Loading branch information
tokudu committed Nov 16, 2012
2 parents ba4e494 + 85cee13 commit c707789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SAM/MQTT/sam_mqtt.php
Expand Up @@ -338,7 +338,7 @@ function Send($topic, $message, $options=array()) {
return false;
}

if (in_array(SAM_MQTT_QOS, $options)) {
if (array_key_exists(SAM_MQTT_QOS, $options)) {
$qos = $options[SAM_MQTT_QOS];
} else {
$qos = 0;
Expand Down

0 comments on commit c707789

Please sign in to comment.