summaryrefslogtreecommitdiff
path: root/modules/watchdog/watchdog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-09 18:18:43 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-09 18:18:43 +0000
commit8e657f64efb3c3e12365d1c33e6ab89e40d9bfd5 (patch)
treeaf96a46601a88e0be7089151a7bdb95afd54c310 /modules/watchdog/watchdog.module
parentaccebe358c1cb4b07e6dba7f9f7776fe3b09d242 (diff)
downloadbrdo-8e657f64efb3c3e12365d1c33e6ab89e40d9bfd5.tar.gz
brdo-8e657f64efb3c3e12365d1c33e6ab89e40d9bfd5.tar.bz2
- Gerhard's uid 0 patches. These patches bring various performance
improvements. Requires a database update.
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r--modules/watchdog/watchdog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index 0d3165351..1a3c83bda 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -77,7 +77,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 LEFT JOIN {users} u ON w.uid = u.uid ". ($type ? $query[$type] : "");
+ $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);
$result = pager_query($sql, 50);
@@ -105,7 +105,7 @@ function watchdog_overview($type) {
function watchdog_view($id) {
- $result = db_query("SELECT w.*, u.name, u.uid FROM {watchdog} w LEFT JOIN {users} u ON w.uid = u.uid WHERE w.wid = %d", $id);
+ $result = db_query("SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid WHERE w.wid = %d", $id);
if ($watchdog = db_fetch_object($result)) {
$output .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">";