- Patch #147761 by ChrisKennedy: SQL bugfix.

6.x
Dries Buytaert 2007-05-31 11:56:12 +00:00
parent 97a09cb998
commit 95a84de389
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ function dblog_top($type) {
array('data' => t('Message'), 'field' => 'message')
);
$result = pager_query("SELECT COUNT(wid) AS count, message, variables FROM {watchdog} WHERE type = '%s' GROUP BY (message, variables) ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
$result = pager_query("SELECT COUNT(wid) AS count, message, variables FROM {watchdog} WHERE type = '%s' GROUP BY message, variables ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
$rows = array();
while ($dblog = db_fetch_object($result)) {