Skip to content

Commit

Permalink
Merge pull request marcelog#14 from d4rkstar/validatefix
Browse files Browse the repository at this point in the history
Added check to avoid that the validate() function will play null files
  • Loading branch information
marcelog committed Jul 16, 2013
2 parents 795ccfa + 1c68c8c commit b98a373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mg/PAGI/Node/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ public function validate()
$this->addPrePromptMessage($msg);
}
} else {
$this->addPrePromptMessage($onError);
if (is_string($onError)) {
$this->addPrePromptMessage($onError);
}
}
return false;
}
Expand Down

0 comments on commit b98a373

Please sign in to comment.