From 44c48004346e5956cefbd5ebd558a4406cc61253 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 30 Dec 2000 11:58:14 +0000 Subject: - here a bunch of changes to make "drupal" (for now) work with PHP 4.0.4 - tidied up some of the code and mainly working on the documentation --- modules/watchdog.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index aeef237c4..9b974634a 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -11,10 +11,10 @@ function watchdog_display($order = "date") { $colors = array("#D8BFD8", "#6495ED", "#6A5ADF", "#FFFFFF", "#FFA500", "#FF3C3C"); $fields = array("date" => "id DESC", "username" => "user", "location" => "location", "message" => "message DESC", "level" => "level DESC"); - ### Perform query: + // Perform query: $result = db_query("SELECT l.*, u.userid FROM watchdog l LEFT JOIN users u ON l.user = u.id ORDER BY l.$fields[$order]"); - ### Generate output: + // Generate output: $output .= "\n"; $output .= " \n"; $output .= "
\n"; -- cgit v1.2.3