plugins/SpecialAdmin.php
changeset 1374 f99b9c5036d4
parent 1352 d97cf005f674
--- a/plugins/SpecialAdmin.php	Mon Nov 19 11:40:35 2012 -0500
+++ b/plugins/SpecialAdmin.php	Sat Dec 15 12:40:59 2012 -0500
@@ -1631,6 +1631,9 @@
 	{
 		$use_smtp = getConfig('smtp_enabled') == '1';
 		
+		// init errors array
+		$errors = array();
+		
 		//
 		// Let's do some checking to make sure that mass mail functions
 		// are working in win32 versions of php. (copied from phpBB)
@@ -1718,7 +1721,7 @@
 			}
 		}
 		
-		if ( sizeof($errors) < 1 )
+		if ( empty($errors) )
 		{
 		
 			$mail->from(getConfig('contact_email'));