Commit 71e7e78b authored by Dries's avatar Dries
Browse files

- Patch #105540 by souvent22: small SQL optimization.

parent dc0ffc1b
......@@ -120,7 +120,7 @@ function watchdog_overview() {
array('data' => t('Operations'))
);
$sql = "SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid";
$sql = "SELECT w.wid, w.uid, w.severity, w.type, w.timestamp, w.message, w.link, u.name FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid";
$tablesort = tablesort_sql($header);
$type = $_SESSION['watchdog_overview_filter'];
if ($type != 'all') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment