From d658167fb5ae186d805b7838f8a9a2802beb7b4d Mon Sep 17 00:00:00 2001
From: defacer <defacer>
Date: Tue, 1 Jun 2004 10:10:25 +0000
Subject: [PATCH] Tiny fix for forum_cron() to suppress a warning.

---
 mod/forum/lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index f94c15cd11..10488f6415 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -464,7 +464,7 @@ function forum_cron () {
         }
     }
 
-    if($usermailcount > 0) {
+    if(!empty($usermailcount)) {
         echo "\n".get_string('digestsentusers', 'forum', $usermailcount)."\n";
     }
 
-- 
2.39.5