Corrección de correos y solicitudes
Some checks failed
Deploy Pruebas / deploy (push) Has been cancelled

This commit is contained in:
AlexLara
2024-09-27 12:45:41 -06:00
parent 189566ce16
commit 3b73423292
3 changed files with 19 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ class MandaCorreos{
if($tipo & self::JEFE){
$correosJefe_rs = $db->querySingle("SELECT DISTINCT jefe.usuario_correo
FROM usuario jefe
where :id_fac = ANY(jefe.facultad_id_array) AND rol_id = 11
where :id_fac = facultad_id AND rol_id = 11
and jefe.usuario_correo is not null and jefe.usuario_correo != ''",
[':id_fac' => $facultad] );
foreach($correosJefe_rs as $correo){
@@ -59,7 +59,7 @@ class MandaCorreos{
$correosProf_rs = $db->querySingle("SELECT DISTINCT prof.usuario_correo
FROM horario_profesor hs
inner join usuario prof on prof.usuario_id =hs.usuario_id
where :id_fac = ANY(hs.facultad_id_array) and prof.usuario_id = :id_prof
where :id_fac = hs.facultad_id and prof.usuario_id = :id_prof
and prof.usuario_correo is not null and prof.usuario_correo != ''",
[':id_prof'=>$prof_id, ':id_fac' => $facultad] );
foreach($correosProf_rs as $correo){