From 4eae09888a1e9f8c5adaaa3e4cfdcadac570d0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 27 Feb 2002 21:45:32 +0000 Subject: [PATCH] Better fix for bug #523408 --- db_details.php3 | 5 ++--- tbl_properties.php3 | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/db_details.php3 b/db_details.php3 index 0913493f9..791020608 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -528,9 +528,8 @@ if ($num_tables > 0) { // loic1: defines wether file upload is available or not $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get')) ? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize'))) - // loic1: php3.0.15 bug -> always enabled with php3 - // : (intval(@get_cfg_var('upload_max_filesize'))); - : 1; + // loic1: php 3.0.15 and lower bug -> always enabled + : (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize'))); ?> diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 89005f63e..a3b9c9206 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -688,9 +688,8 @@ echo "\n"; // loic1: defines wether file upload is available or not $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get')) ? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize'))) - // loic1: php3.0.15 bug -> always enabled with php3 - // : (intval(@get_cfg_var('upload_max_filesize'))); - : 1; + // loic1: php 3.0.15 and lower bug -> always enabled + : (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize'))); ?>