Added a valid_emails rule to the Validation class.
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 2bc66ec..f435c0b 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -314,11 +314,8 @@
 	

 		$query = $this->query($this->_count_string . $this->_protect_identifiers('numrows'). " FROM " . $this->_protect_identifiers($this->dbprefix.$table));

 		

-		if ($query->num_rows() == 0)

-			return '0';

-

 		$row = $query->row();

-		return $row->numrows;

+		return (int)$row->numrows;

 	}

 

 	// --------------------------------------------------------------------

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

diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 767dd2a..ef1b7ac 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -83,6 +83,7 @@
     		<li>The MySQLi forge class is now in sync with MySQL forge. </li>

 			<li>Added the ability to set CRLF settings via config in the <a href="libraries/email.html">Email</a> class.</li>

 			<li><a href="libraries/unit_testing.html">Unit Testing</a> results are now colour coded, and a change was made to the default template of results.</li>

+			<li>Added a valid_emails rule to the <a href="libraries/validation.html">Validation</a> class.</li>

 		</ul>

 	</li>

     <li>Helpers

diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html
index 815b542..e539fbf 100644
--- a/user_guide/libraries/validation.html
+++ b/user_guide/libraries/validation.html
@@ -18,7 +18,6 @@
 <meta name='robots' content='all' />

 <meta name='author' content='ExpressionEngine Dev Team' />

 <meta name='description' content='CodeIgniter User Guide' />

-

 </head>

 <body>

 

@@ -597,6 +596,12 @@
 <td class="td">&nbsp;</td>

 </tr>

 <tr>

+	<td class="td"><strong>valid_emails</strong></td>

+	<td class="td">No</td>

+	<td class="td">Returns FALSE if any value provided in a comma separated list is not a valid email.</td>

+	<td class="td">&nbsp;</td>

+</tr>

+<tr>

 <td class="td"><strong>valid_ip</strong></td>

 <td class="td">No</td>

 <td class="td">Returns FALSE if the supplied IP is not valid.</td>