Archived
1
0

Fix conflict

This commit is contained in:
James Stuckey Weber
2015-03-22 14:22:14 -04:00
2 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ $sql = "CREATE TABLE IF NOT EXISTS `stat` (
$result = $conn->query($sql);
if (!$result) {
printf("Errormessage: %s\n", $conn->error);
} else{
print "success";
}
?>

View File

@@ -19,6 +19,7 @@ if (!$conn) {
$good_columns = array("coolLowerSetpLimit","coolNextPeriod","coolSetpoint","coolUpperSetptLimit","deviceID","dispTemperature","displayedUnits","heatLowerSetptLimit","heatNextPeriod","heatSetpoint","heatUpperSetptLimit","isInVacationHoldMode","schedCoolSp","schedHeatSp","scheduleCapable","statusCool","statusHeat","systemSwitchPosition","weatherHumidity","weatherPhrase","weatherTemperature");
$clean_data = array();
foreach($good_columns as $col){
if(isset($data[$col])){