From 2fa9f811cf143c0fcafe197320dfb119310a6904 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Mon, 28 Jun 2010 02:00:50 +0000
Subject: [PATCH] Fix for missing config entry 'beg_new_member_notify'

---
 inc/extensions/ext-beg.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/extensions/ext-beg.php b/inc/extensions/ext-beg.php
index 070c372865..214f330e5a 100644
--- a/inc/extensions/ext-beg.php
+++ b/inc/extensions/ext-beg.php
@@ -292,7 +292,7 @@ PRIMARY KEY (id)
 		$result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE `timeout` < (UNIX_TIMESTAMP() - ".($OLD + 60*60).")", __FILE__, __LINE__);
 
 		// Check for beg rallye is active and send mails out
-		if ((getConfig('beg_rallye') == 'Y') && (getConfig('beg_new_member_notify') == 'Y')) {
+		if ((getConfig('beg_rallye') == 'Y') && (getExtensionVersion('beg') >= '0.2.8') && (getConfig('beg_new_member_notify') == 'Y')) {
 			// Include file for sending out mails
 			addIncludeToPool('notify', 'inc/mails/beg_mails.php');
 		} // END - if
-- 
2.39.5