Skip to content

Commit

Permalink
reverse to or
Browse files Browse the repository at this point in the history
  • Loading branch information
it-can committed Nov 16, 2012
1 parent f6feb8d commit 6f07b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6f07b3e

Please sign in to comment.