Commit 0a45dbdf authored by minorOffense's avatar minorOffense Committed by alesr

#1865852 og_form_group_manager_validate() assumes the entity form has a language.

parent d16275a0
......@@ -786,7 +786,7 @@ function og_form_group_manager_validate($form, &$form_state) {
return;
}
$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)) {
// 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