Added a valid_emails rule to the Validation class.
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index d0714d0..18fdba2 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -488,6 +488,33 @@
// --------------------------------------------------------------------
/**
+ * Valid Emails
+ *
+ * @access public
+ * @param string
+ * @return bool
+ */
+ function valid_emails($str)
+ {
+ if (strpos($str, ',') === FALSE)
+ {
+ return $this->valid_email(trim($str));
+ }
+
+ foreach(explode(',', $str) as $email)
+ {
+ if (trim($email) != '' && $this->valid_email(trim($email)) === FALSE)
+ {
+ return FALSE;
+ }
+ }
+
+ return TRUE;
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Validate IP Address
*
* @access public