diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a1726c4d17..40a2dfad03 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-09-05 Miguel de Dios + + * include/functions_filemanager.php: fixed PHP notice when this + file is included and there is not a upload file action. + 2013-09-04 Miguel de Dios * godmode/agentes/modificar_agente.php, diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index f10e3c1cf1..f5df89994d 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -187,10 +187,12 @@ if ($upload_file) { } } -// Control the max_post_size exceed -if (intval($_SERVER['CONTENT_LENGTH']) > 0 && empty($_POST) AND empty($_FILES)) { - $config['filemanager']['correct_upload_file'] = 0; - $config['filemanager']['message'] = ui_print_error_message(__('File size seems to be too large. Please check your php.ini configuration or contact with the administrator'), '', true); +if (isset($_SERVER['CONTENT_LENGTH'])) { + // Control the max_post_size exceed + if (intval($_SERVER['CONTENT_LENGTH']) > 0 && empty($_POST) AND empty($_FILES)) { + $config['filemanager']['correct_upload_file'] = 0; + $config['filemanager']['message'] = ui_print_error_message(__('File size seems to be too large. Please check your php.ini configuration or contact with the administrator'), '', true); + } } // Create text file