summaryrefslogtreecommitdiff
path: root/modules/syslog/syslog.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-04-24 15:53:53 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-04-24 15:53:53 +0000
commit0a5ec93496168164c189d66def1d2c9728d1dc47 (patch)
treedccd3e5e10147d155226874fe2653d0d840a6982 /modules/syslog/syslog.module
parent9a6099c234d65989b7d912cba8bb6b5c4d681d96 (diff)
downloadbrdo-0a5ec93496168164c189d66def1d2c9728d1dc47.tar.gz
brdo-0a5ec93496168164c189d66def1d2c9728d1dc47.tar.bz2
#76588: Small fixes after that patch landed
- typo fix in watchdog() phpdoc - add a missing array() on a watchdog call in ping.module - handle NULL 'variables' value in syslog module Noticed these while writing the documentation for watchdog() updates and by comitting the updates into the i18n SVN repository.
Diffstat (limited to 'modules/syslog/syslog.module')
-rw-r--r--modules/syslog/syslog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module
index 76ee75e57..1807b415d 100644
--- a/modules/syslog/syslog.module
+++ b/modules/syslog/syslog.module
@@ -98,8 +98,8 @@ function theme_syslog_format($entry) {
'@referer_uri' => $entry['referer'],
'@uid' => $entry['user']->uid,
'@link' => strip_tags($entry['link']),
- // Keep message English, but replace variable components.
- '@message' => strip_tags(strtr($entry['message'], $entry['variables'])),
+ // Keep message English, but replace variable components, if present.
+ '@message' => strip_tags(is_null($entry['variables']) ? $entry['message'] : strtr($entry['message'], $entry['variables'])),
));
return $message;
}