Commit 17ee53de authored by codi's avatar codi Committed by jelles
Browse files

Issue #2289453 by codi: Fixed Notice: Undefined index: command in...

Issue #2289453 by codi: Fixed Notice: Undefined index: command in clientside_validation_ajax_render_alter().
parent 5fc4042b
......@@ -36,7 +36,7 @@ function clientside_validation_js_alter(&$javascript) {
function clientside_validation_ajax_render_alter(&$commands) {
$cv_settings = &drupal_static('clientside_validation_settings', array());
foreach ($commands as $delta => $command) {
if ($command['command'] == 'settings') {
if (isset($command['command']) && $command['command'] == 'settings') {
$commands[$delta]['settings'] = drupal_array_merge_deep($command['settings'], $cv_settings);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment