Permalink
Browse files

reverse to or

  • Loading branch information...
1 parent f6feb8d commit 6f07b3e024b825eac934b34fc6e14f4a768f445f @it-can committed Nov 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/validation.php
View
@@ -175,7 +175,7 @@ public function add_field($name, $label, $rules)
{
$field = $this->add($name, $label);
- ! is_array($rules) and $rules = explode('|', $rules);
+ is_array($rules) or $rules = explode('|', $rules);
foreach ($rules as $rule)
{

0 comments on commit 6f07b3e

Please sign in to comment.