Skip to content
Permalink
Browse files

Update magichome.class.php

  • Loading branch information...
directman66 committed Sep 7, 2018
1 parent 6748869 commit 193b2555695a917cdbac6f4a61dc0236703ab174
Showing with 7 additions and 2 deletions.
  1. +7 −2 modules/magichome/magichome.class.php
@@ -804,6 +804,11 @@ function dbInstall($data = '') {
EOD;
parent::dbInstall($data);
$mhdevices=SQLSelect("SELECT * FROM magichome_commands");
if ($mhdevices[0]['ID'])
{}else{
$par=array();
$par['TITLE'] = 'command';
$par['ID'] = "1";
@@ -812,7 +817,7 @@ function dbInstall($data = '') {
$par['TITLE'] = 'color';
$par['ID'] = "2";
SQLInsert('magichome_commands', $par);
$par['TITLE'] = 'level';
$par['ID'] = "3";
SQLInsert('magichome_commands', $par);
@@ -826,7 +831,7 @@ function dbInstall($data = '') {
$par2['parametr'] = 'DEBUG';
$par2['value'] = "";
SQLInsert('magichome_config', $par2);
}
}

0 comments on commit 193b255

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