Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix issue 1204 #1205

Merged
merged 2 commits into from

2 participants

@it-can

fix issue for issue #1204

@it-can

okay @WanWizard changed it...

@WanWizard WanWizard merged commit 6f17280 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 15, 2012
  1. @it-can

    fix issue 1204

    it-can authored
Commits on Nov 16, 2012
  1. @it-can

    reverse to or

    it-can authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/validation.php
View
2  classes/validation.php
@@ -175,7 +175,7 @@ public function add_field($name, $label, $rules)
{
$field = $this->add($name, $label);
- $rules = explode('|', $rules);
+ is_array($rules) or $rules = explode('|', $rules);
foreach ($rules as $rule)
{
Something went wrong with that request. Please try again.