diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-07-02 18:32:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-07-02 18:32:12 +0000 |
commit | 3701c02e59d7489331e8d298d5c7a7fd51b72b28 (patch) | |
tree | 137a9961c30743293c18dccb6a5a9984e8848393 /modules/watchdog.module | |
parent | d279d16ccb829259d2a24253de5a8c78a307d7cd (diff) | |
download | brdo-3701c02e59d7489331e8d298d5c7a7fd51b72b28.tar.gz brdo-3701c02e59d7489331e8d298d5c7a7fd51b72b28.tar.bz2 |
- Small watchdog module optimization by Morbus.
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index 06b86c958..9f88e92c4 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -85,7 +85,6 @@ function watchdog_overview($type = '') { foreach (_watchdog_get_message_types() as $key) { $query[$key] = "WHERE type = '". check_query($key) ."'"; } - $query['actions'] = "WHERE link != ''"; $header = array( array('data' => t('date'), 'field' => 'w.timestamp', 'sort' => 'desc'), @@ -93,8 +92,7 @@ function watchdog_overview($type = '') { array('data' => t('user'), 'field' => 'u.name'), array('data' => t('operations'), 'colspan' => '2') ); - $sql = 'SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid '. ($type ? $query[$type] : ''); - $sql .= tablesort_sql($header); + $sql = 'SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid '. ($type ? $query[$type] : '') . tablesort_sql($header); $result = pager_query($sql, 50); while ($watchdog = db_fetch_object($result)) { |