web: bugfix for drush logger assign command

This commit is contained in:
Bart Van Der Meerssche 2009-08-27 18:29:29 +00:00
parent 227686cce8
commit dad56e6776
1 changed files with 1 additions and 1 deletions

View File

@ -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');