Allowed empty rules to be set, and fixed a bug that allows blank error messages to output the delimiters.
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index b658011..e8ba4e0 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -96,8 +96,8 @@
 			return;

 		}

 		

-		// No rules or fields? Nothing to do...

-		if ( ! is_string($field) OR  ! is_string($rules) OR $field == '' OR $rules == '')

+		// No fields? Nothing to do...

+		if ( ! is_string($field) OR  ! is_string($rules) OR $field == '')

 		{

 			return;

 		}

@@ -197,7 +197,7 @@
 	 */	

 	function error($field = '', $prefix = '', $suffix = '')

 	{	

-		if ( ! isset($this->_field_data[$field]['error']))

+		if ( ! isset($this->_field_data[$field]['error']) OR $this->_field_data[$field]['error'] == '')

 		{

 			return '';

 		}

@@ -249,7 +249,10 @@
 		$str = '';

 		foreach ($this->_error_array as $val)

 		{

-			$str .= $prefix.$val.$suffix."\n";

+			if ($val != '')

+			{

+				$str .= $prefix.$val.$suffix."\n";

+			}

 		}

 		

 		return $str;