Skip to content
Permalink
Browse files

Update magichome.class.php

  • Loading branch information...
directman66 committed Apr 16, 2019
1 parent b7be7b0 commit 4b631b549bd4b3422766ea7494ca824f2bc8a8f1
Showing with 4 additions and 4 deletions.
  1. +4 −4 modules/magichome/magichome.class.php
@@ -1166,30 +1166,30 @@ function dbInstall($data = '') {
$par2=SQLSelectOne("SELECT * FROM magichome_config where parametr='DEBUG'");
if (!par2['value']) {
if (!$par2['value']) {
$par2['parametr'] = 'DEBUG';
$par2['value'] = "";
SQLInsert('magichome_config', $par2);
}
$par2=SQLSelectOne("SELECT * FROM magichome_config where parametr='EVERY'");
if (!par2['value']) {
if (!$par2['value']) {
$par2['parametr'] = 'EVERY';
$par2['value'] = "300";
SQLInsert('magichome_config', $par2);
}
$par2=SQLSelectOne("SELECT * FROM magichome_config where parametr='LASTCYCLE_TS'");
if (!par2['value']) {
if (!$par2['value']) {
$par2['parametr'] = 'LASTCYCLE_TS';
$par2['value'] = "";
SQLInsert('magichome_config', $par2);
}
$par2=SQLSelectOne("SELECT * FROM magichome_config where parametr='ENABLE'");
if (!par2['value']) {
if (!$par2['value']) {
$par2['parametr'] = 'ENABLE';
$par2['value'] = "1";

0 comments on commit 4b631b5

Please sign in to comment.
You can’t perform that action at this time.