Add serial and manufacturer fields to addmachine API
This commit is contained in:
parent
9692076e13
commit
ba27b06e91
@ -152,6 +152,12 @@ switch ($VARS['action']) {
|
|||||||
if (!empty($VARS['os'])) {
|
if (!empty($VARS['os'])) {
|
||||||
$data['os'] = $VARS['os'];
|
$data['os'] = $VARS['os'];
|
||||||
}
|
}
|
||||||
|
if (!empty($VARS['serial'])) {
|
||||||
|
$data['serial'] = $VARS['serial'];
|
||||||
|
}
|
||||||
|
if (!empty($VARS['manufacturer'])) {
|
||||||
|
$data['manufacturer'] = $VARS['manufacturer'];
|
||||||
|
}
|
||||||
|
|
||||||
$database->insert('machines', $data);
|
$database->insert('machines', $data);
|
||||||
if ($database->error()[1] != 0) {
|
if ($database->error()[1] != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user