Skip to content
Snippets Groups Projects
Commit c78f5cf7 authored by Viktor Holovachek's avatar Viktor Holovachek
Browse files

Issue #3471140 - Fix undefiend variable

parent f399e0aa
No related branches found
No related tags found
1 merge request!5Issue #3471140 - Fix undefiend variable
......@@ -108,7 +108,7 @@ class FapiValidationValidatorsManager extends DefaultPluginManager {
$message = $validator->getErrorMessage();
}
// Plugin defined error callback?
elseif ($plugin['error_callback'] !== NULL) {
elseif (!empty($plugin['error_callback'])) {
return call_user_func_array([$plugin['class'], $plugin['error_callback']], [$validator, $element]);
}
// Plugin defined error message?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment