diff --git a/public_html/entreaulas/alumnos.php b/public_html/entreaulas/alumnos.php index 8acbbf7..b27073a 100644 --- a/public_html/entreaulas/alumnos.php +++ b/public_html/entreaulas/alumnos.php @@ -82,8 +82,9 @@ switch ($_GET["form"] ?? '') { // Validate image $image_info = getimagesize($tmp_name); if ($image_info !== false) { - move_uploaded_file($tmp_name, $photo_path); - chmod($photo_path, 0644); + if (move_uploaded_file($tmp_name, $photo_path)) { + chmod($photo_path, 0644); + } } } @@ -133,8 +134,9 @@ switch ($_GET["form"] ?? '') { // Validate image $image_info = getimagesize($tmp_name); if ($image_info !== false) { - move_uploaded_file($tmp_name, $photo_path); - chmod($photo_path, 0644); + if (move_uploaded_file($tmp_name, $photo_path)) { + chmod($photo_path, 0644); + } } } @@ -223,7 +225,7 @@ switch ($_GET["action"] ?? '') {
<?= htmlspecialchars($nombre) ?>
@@ -311,7 +313,7 @@ switch ($_GET["action"] ?? '') { <?= htmlspecialchars($nombre) ?>
diff --git a/public_html/entreaulas/aulario.php b/public_html/entreaulas/aulario.php index 6f34a2a..1d502bc 100644 --- a/public_html/entreaulas/aulario.php +++ b/public_html/entreaulas/aulario.php @@ -22,7 +22,7 @@ $aulario = json_decode(file_get_contents("/DATA/entreaulas/Centros/$centro_id/Au - + Icono de gestión de alumnos
Gestión de Alumnos