Unverified Commit 6805fa56 authored by alesr's avatar alesr Committed by GitHub

Merge pull request #387 from Gizra/1865852

og_form_group_manager_validate() assumes the entity form has a language
parents a0bf6b57 0a45dbdf
...@@ -786,7 +786,7 @@ function og_form_group_manager_validate($form, &$form_state) { ...@@ -786,7 +786,7 @@ function og_form_group_manager_validate($form, &$form_state) {
return; return;
} }
$entity = $form_state[$entity_type]; $entity = $form_state[$entity_type];
$langcode = $form_state['values']['language']; $langcode = isset($form_state['values']['language']) ? $form_state['values']['language'] : LANGUAGE_NONE;
if (!isset($form_state['values']['uid']) || !isset($entity->uid)) { if (!isset($form_state['values']['uid']) || !isset($entity->uid)) {
// There is no user ID property on the entity. // There is no user ID property on the entity.
......
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