Merge pull request #2445 from laf/issue-2426

Added missing fields when inserting into applications table
This commit is contained in:
Mike Rostermund
2015-11-17 23:00:58 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ if ($_POST['device']) {
foreach ($enabled as $app) {
if (!in_array($app, $app_in_db)) {
$updated += dbInsert(array('device_id' => $device['device_id'], 'app_type' => $app), 'applications');
$updated += dbInsert(array('device_id' => $device['device_id'], 'app_type' => $app, 'app_status' => '', 'app_instance' => ''), 'applications');
}
}
@@ -99,4 +99,4 @@ echo '<div class="row">
';
echo '</form>';
echo '</div>';
echo '</div>';
echo '</div>';