Correcciones

This commit is contained in:
AlexLara
2025-07-22 10:56:20 -06:00
parent 058fd8ba4d
commit db5ee9fc20
4 changed files with 38 additions and 8 deletions

View File

@@ -191,9 +191,9 @@ try{
//Recorre SGU y genera hash
foreach( $selectedData as $row ){
//if ($debug)
// echo trim($row["HoraInicio"]."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"])."[{$row["ClaveCarrera"]}]|{$row["EsMateriaPorReposicion"]}*";
/*if ($debug)
echo trim($row["HoraInicio"]."|".(trim($row["ClaveMateria"])==''?'-':$row["ClaveMateria"])."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"])." [{$row["ClaveCarrera"]}] *{$row["EsMateriaPorReposicion"]}*<br>";
*/
if(!$row["EsMateriaPorReposicion"]){
$carrera = $row["ClaveCarrera"];
if(is_null($carrera) || empty($carrera))
@@ -204,7 +204,7 @@ try{
}*/
$sguHash[] = array(
"hash"=>( trim($row["HoraInicio"]."|".($row["ClaveMateria"])."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"]) ),
"hash"=>( trim($row["HoraInicio"]."|".(trim($row["ClaveMateria"])==''?'-':$row["ClaveMateria"])."|".($row["NombreMateria"])."|".(trim($row["ClaveProfesor"])==""?"000000":trim($row["ClaveProfesor"]))."|".$row["IdEspacio"]."|".$per["periodo_id"]."|".$row["Carrera"]) ),
"data"=>$row,
"per"=>$per["periodo_id"]
);