fix toner dbUpdate call (#5889)

This commit is contained in:
Neil Lathwood
2017-02-14 11:44:16 +00:00
committed by GitHub
parent 3843346109
commit c5c560328b

View File

@@ -27,5 +27,5 @@ foreach ($toner_data as $toner) {
log_event('Toner ' . $toner['toner_descr'] . ' was replaced (new level: ' . $tonerperc . '%)', $device, 'toner', 3, $toner['toner_id']);
}
dbUpdate(array('toner_current' => $tonerperc, 'toner_capacity' => $toner['toner_capacity']), 'toner', '`toner_id` = ?', 4, array($toner['toner_id']));
dbUpdate(array('toner_current' => $tonerperc, 'toner_capacity' => $toner['toner_capacity']), 'toner', '`toner_id` = ?', array($toner['toner_id']));
}//end foreach