# HG changeset patch # User Dan Fuhry # Date 1355593259 18000 # Node ID f99b9c5036d4fdaa01ac3c9e794888b6ab6aa7f2 # Parent 851b91febb85357bbeda97b7c352484bf22309fe Fixed undefined $errors in mass e-mail function diff -r 851b91febb85 -r f99b9c5036d4 plugins/SpecialAdmin.php --- 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'));