summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-08-27 23:43:13 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-08-27 23:43:13 +0200
commita5acb737a35215fca563899a7ba49be210706e30 (patch)
tree2aac6d1e3ba0ef948bde73a3a50b2bbd8a8aa7fa
parent0c734b52b648fd1c26546306ad578a90ef6f0f72 (diff)
Fixed an empty string error
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index fd0c22ec1..b658011bd 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -319,7 +319,7 @@ class CI_Form_validation {
}
else
{
- if (isset($_POST[$field]))
+ if (isset($_POST[$field]) AND $_POST[$field] != "")
{
$this->_field_data[$field]['postdata'] = $_POST[$field];
}