diff options
author | davef <davefd2@users.sourceforge.net> | 2005-05-06 22:16:10 +0000 |
---|---|---|
committer | davef <davefd2@users.sourceforge.net> | 2005-05-06 22:16:10 +0000 |
commit | 476cf53e93eacf51411212b957040bd2d096561d (patch) | |
tree | 6854d3d618c09086fe0b17d946e3eaf891f15f73 | |
parent | 8c9fa31ab014070c603ca899ec489b5c85cf8bc8 (diff) | |
download | phpicalendar-476cf53e93eacf51411212b957040bd2d096561d.tar.gz phpicalendar-476cf53e93eacf51411212b957040bd2d096561d.tar.bz2 phpicalendar-476cf53e93eacf51411212b957040bd2d096561d.zip |
SF Patch #1059866 - fixed support for PHP5 w/ the admin interface. Also fixed a comment that referenced the old name.
-rw-r--r-- | admin/index.php | 2 | ||||
-rw-r--r-- | functions/admin_functions.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/index.php b/admin/index.php index b2775e8..c4f60bb 100644 --- a/admin/index.php +++ b/admin/index.php @@ -66,7 +66,7 @@ if ($_POST['action'] == 'delete') { $addupdate_msg = ''; if ((isset($_POST['action'])) && ($_POST['action'] == 'addupdate')) { for ($filenumber = 1; $filenumber < 6; $filenumber++) { - $file = $HTTP_POST_FILES['calfile']; + $file = $_FILES['calfile']; $addupdate_success = FALSE; if (!is_uploaded_file_v4($file['tmp_name'][$filenumber])) { diff --git a/functions/admin_functions.php b/functions/admin_functions.php index 379d64d..6182d18 100644 --- a/functions/admin_functions.php +++ b/functions/admin_functions.php @@ -239,7 +239,7 @@ function is_uploaded_file_v4 ($filename) { // return the appropriate error message if the file upload had an error // -// arg0: array error number from $HTTP_POST_FILES[file]['error'] +// arg0: array error number from $_FILES[file]['error'] // returns string error message function get_upload_error ($upload_error) { global $php_error_lang; |