web: bugfix for drush logger assign command
This commit is contained in:
parent
227686cce8
commit
dad56e6776
|
@ -83,7 +83,7 @@ function _logger_assign($serial, $uid) {
|
|||
}
|
||||
else {
|
||||
db_query("UPDATE {logger_devices} SET uid = %d WHERE serial = %d", $uid, $serial);
|
||||
db_query("UPDATE {logger_meters} SET uid = %d WHERE device = %d", $uid, $device);
|
||||
db_query("UPDATE {logger_meters} SET uid = %d WHERE device = '%s'", $uid, $device);
|
||||
}
|
||||
|
||||
if (!drush_get_error()) drush_log(dt('Successfully assigned uid: @uid to S/N: @serial', array('@uid' => $uid, '@serial' => $serial)), 'ok');
|
||||
|
|
Loading…
Reference in New Issue