$noticia->texto = $texto; $noticia->subtitulo = $subtitulo; try { $noticia->fechaPubli = $fechapubli->format('Y-m-d\\TH:i:s'); } catch (Exception $e) { showAlert($e->getMessage()); exit(1); } try { $noticia->fechaCaducidad = $fechacadu->format('Y-m-d\\TH:i:s'); } catch (Exception $e) { showAlert($e->getMessage()); exit(1); } try { $r = $clienteS->updateNews($id_noticia, $noticia); } catch (Exception $e) { showAlert($e->getMessage()); exit(1); } if ($r == TRUE) { showMessage("La noticia ha sido modificada correctamente"); } else { if (!isset($mens_error)) { $mens_error = "La noticia NO ha sido modificada."; } } } break; case 'listanot': if (isset($_POST['categoria'])) {