summaryrefslogtreecommitdiff
path: root/modules/watchdog/watchdog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-01-31 15:49:26 +0000
committerDries Buytaert <dries@buytaert.net>2007-01-31 15:49:26 +0000
commit05a708fb06137758cf7a15a623b4813af2fc005f (patch)
tree6ae6f50edbcb601329805cbbd7c22d11340327e3 /modules/watchdog/watchdog.module
parent4c9fc80fc48608982a731b03655b02e5ccdb6b17 (diff)
downloadbrdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.gz
brdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.bz2
- Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks.
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r--modules/watchdog/watchdog.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index 39784a0bf..e26f48a64 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -174,11 +174,12 @@ function watchdog_top($type) {
$result = pager_query("SELECT COUNT(wid) AS count, message FROM {watchdog} WHERE type = '%s' GROUP BY message ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
+ $rows = array();
while ($watchdog = db_fetch_object($result)) {
$rows[] = array($watchdog->count, truncate_utf8($watchdog->message, 56, TRUE, TRUE));
}
- if (!$rows) {
+ if (empty($rows)) {
$rows[] = array(array('data' => t('No log messages available.'), 'colspan' => 2));
}