Merged
authorDan Fuhry <dan@enanocms.org>
Wed, 21 Aug 2013 22:13:58 -0400
changeset 1376 60b580d22c7b
parent 1374 f99b9c5036d4 (diff)
parent 1375 d66e43ac35b6 (current diff)
child 1377 fa2b0825bbc5
Merged
--- a/plugins/SpecialAdmin.php	Wed Aug 21 22:12:42 2013 -0400
+++ b/plugins/SpecialAdmin.php	Wed Aug 21 22:13:58 2013 -0400
@@ -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'));