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"] ?? '') {
+