Browse Source

Clean Avisos Insert

Alejandro Rosales 2 years ago
parent
commit
6a7c6b7ed9
1 changed files with 1 additions and 5 deletions
  1. 1 5
      action/action_avisos_insert.php

+ 1 - 5
action/action_avisos_insert.php

@@ -3,9 +3,8 @@ $ruta = '../';
 require_once '../include/bd_pdo.php';
 global $pdo;
 
-print_r($_POST);
-
 $profesores = [];
+
 if(isset($_POST['tipo'])){
     foreach($_POST['tipo'] as $tipo){
         $profesores_carrera = query("SELECT profesor_id FROM fs_profesor_carrera(:carrera_id)", [':carrera_id' => $tipo], false);
@@ -15,9 +14,6 @@ if(isset($_POST['tipo'])){
 
     }
 }
-foreach($_POST['usuario'] as $profesor){
-    array_push($profesores, $profesor);
-}
 $sql = "SELECT fi_aviso(:fecha_inicial, :fecha_final, :texto, :facultad)";
 $params = [':fecha_inicial' => $_POST['fecha_inicial'], ':fecha_final' => $_POST['fecha_final'], ':texto' => $_POST['texto'], ':facultad' => $_POST['facultad']];
 $aviso_id = query($sql, $params, true);