[drupal] limit the number of personal sensors on display to five

This commit is contained in:
Bart Van Der Meerssche 2011-05-18 21:42:51 +00:00
parent 19f32d1da8
commit 3c9aa98da3
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ function _logger_dashboard($type, $function, $interval) {
$result_me = db_query("SELECT meter, function
FROM {logger_meters}
WHERE uid = %d AND type = '%s' AND enabled = %d
ORDER BY function", $user->uid, $type, 1);
ORDER BY function
LIMIT 0, 5", $user->uid, $type, 1);
$meter_me = db_fetch_object($result_me);