Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #113

  • Loading branch information...
commit 2d48b4f1a174473fa0539769a433ba78305c0faa 1 parent 1b7a452
Andrey Andreev narfbg authored
3  system/libraries/Form_validation.php
View
@@ -496,7 +496,8 @@ protected function _reduce_array($array, $keys, $i = 0)
return isset($array[$keys[$i]]) ? $this->_reduce_array($array[$keys[$i]], $keys, ($i+1)) : NULL;
}
- return $array;
+ // NULL must be returned for empty fields
+ return ($array === '') ? NULL : $array;;
}
// --------------------------------------------------------------------
1  user_guide_src/source/changelog.rst
View
@@ -453,6 +453,7 @@ Bug fixes for 3.0
- Fixed a bug (#777) - :doc:`Loader Library <libraries/loader>` didn't look for helper extensions in added package paths.
- Fixed a bug (#18) - :doc:`APC Cache <libraries/caching>` driver didn't (un)serialize data, resulting in failure to store objects.
- Fixed a bug (#188) - :doc:`Unit Testing Library <libraries/unit_testing>` filled up logs with error messages for non-existing language keys.
+- Fixed a bug (#113) - :doc:`Form Validation Library <libraries/form_validation>` didn't properly handle empty fields that were specified as an array.
Version 2.1.3
=============
Please sign in to comment.
Something went wrong with that request. Please try again.