HOLA BUENAS NOCHES O TARDES O DIAS
MI PREGUNTA ES POR QUE ME SALE EL ERROR DE 
Undefined index: Fotografia in C:\xampp\htdocs\Comecom\Periodico\view\admin\ActualizarNota.php on line 124<form name="Actualizar" method="post" enctype="multipart/form-data">
<?php
@$Conectando=$_GET['id'];
include("../../../Conexion/conexion.php");
$res=mysqli_query($conecta,"select * from politica where Idnota='$Conectando';");
  while ($resultado=mysqli_fetch_array($res)) {
  $cod=$resultado['Idnota'];
  $Title=$resultado['Titulo'];
  $date=$resultado['Fecha'];
  $photo=$resultado['Fotografia'];
  $note=$resultado['Nota'];
  }
?>
<div class="container">
<table class="table table-striped">
<tr>
  <td>Id Nota:</td>
  <td>  <input type="number" name="Idnota" value ="<?php echo $cod;?>" readonly="readonly"> </td>
</tr>
<tr>
  <td>Titulo:</td>
  <td><input  type="text" name="Titulo" value ="<?php echo $Title;?>"> </td>
</tr>
<tr>
  <td>Fecha:</td>
  <td><input type="date" name="Fecha" value ="<?php echo $date;?>"> </td>
</tr>
  <td>Fotografia:</td>
  <td><input type="file" name="Fotografia"> </td>
</tr>
<tr>
  <td>Nota:</td>
  <td><input type="text" name="Nota"  value ="<?php echo $note;?>"> </td>
</tr>
<tr>
  <td colspan="2" align="center"><input type="submit"  class="btn btn-success"   value="Actualizar" >
  <input type="button"  class="btn btn-success"   value="Regresar" onClick="javascript:window.location='RegistroNoti.php';"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
<?php
include("../../../Conexion/conexion.php");
if ($_FILES['Fotografia']['name']=="") {
    mysql_query("update politica set Titulo ='".$_POST['Titulo']."', 
                                     Fecha='".$_POST['Fecha']."',
                                     Nota='".$_POST['Nota']."'
                                      where Idnota=".$_POST['id'].";");
  }
  else{
    $re = mysql_query("select Fotografia from politica where".$_POST['id'].";");
    while ($f=mysql_fetch_array($re)) {
      unlink("../Fotos/".$f['Fotografia']);
    }
    $ruta = "../Fotos/";
    opendir($ruta);
    $destino = $ruta.$_FILES['fotografia']['name'];
    copy($_FILES['fotografia']['tmp_name'],$destino);
    $nombre=$_FILES['fotografia']['name'];
    mysql_query("update politica set Titulo ='".$_POST['Titulo']."', 
                                     Fecha='".$_POST['Fecha']."',
                                     Imagen ='".$nombre."',
                                     Nota='".$_POST['Nota']."'
                                     where Idnota=".$_POST['id'].";");
  }
  header("Location: ../");
?>


