Revision: 2989
          https://sourceforge.net/p/mrbs/code/2989/
Author:   cimorrison
Date:     2015-01-28 15:52:56 +0000 (Wed, 28 Jan 2015)
Log Message:
-----------
Simplified last code change

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2015-01-28 15:50:06 UTC (rev 2988)
+++ mrbs/trunk/web/functions.inc        2015-01-28 15:52:56 UTC (rev 2989)
@@ -2006,17 +2006,15 @@
 // returns FALSE if any one of them is invalid, otherwise TRUE
 function validate_email_list($list)
 {
-  if (!isset($list) || ($list === ''))
+  if (isset($list) && ($list !== ''))
   {
-    return TRUE;
-  }
-  
-  $emails = explode(',', $list);
-  foreach ($emails as $email)
-  {
-    if (FALSE === filter_var(trim($email), FILTER_VALIDATE_EMAIL))
+    $emails = explode(',', $list);
+    foreach ($emails as $email)
     {
-      return FALSE;
+      if (FALSE === filter_var(trim($email), FILTER_VALIDATE_EMAIL))
+      {
+        return FALSE;
+      }
     }
   }
   
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to