} } } } } if (!$control) { // es contenido if (strlen(strstr($key, 'termino_')) > 0 == false && $post != '') { $contenido->{$key} = $post; } else { if (strlen(strstr($key, 'termino_')) > 0) { list($broza, $id_taxonomia) = explode('termino_', $key); array_push($lista_terminos, $id_taxonomia); } else { header('Location: editar.php?tipo=contenido&id=' . $contenido->id . '&exito=error'); exit; } } } } } $res = $contenido_controller->actualizar_contenido($contenido, $obj_campos_extra, $lista_terminos); $url = $res ? 'editar.php?tipo=contenido&id=' . $contenido->id . '&exito=ok' : 'editar.php?tipo=contenido&id=' . $contenido->id . '&exito=error'; header('Location:' . $url); } else { header('Location: error_admin.php '); } } ?>