diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-12-30 11:58:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-12-30 11:58:14 +0000 |
commit | 44c48004346e5956cefbd5ebd558a4406cc61253 (patch) | |
tree | 174d686bc2fd83da9930f6bf20de9864ef34e71c /modules/watchdog.module | |
parent | 83f6495c9aa810a884b7ca2c44d19f3f32b6092a (diff) | |
download | brdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.gz brdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.bz2 |
- 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
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 4 |
1 files changed, 2 insertions, 2 deletions
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 .= "<TABLE BORDER=\"1\" CELLPADDING=\"2\" CELLSPACING=\"2\">\n"; $output .= " <TR>\n"; $output .= " <TH ALIGN=\"right\" COLSPAN=\"4\">\n"; |