From 53d764e841042f0600bcb78bee9f4c7a3acb12da Mon Sep 17 00:00:00 2001 From: Jeroen Latour Date: Thu, 15 Aug 2002 18:44:04 +0000 Subject: [PATCH] Fixed problem in manage_proj_update.php which gave a warning when editing projects with empty upload file paths. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1204 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- doc/ChangeLog | 1 + manage_proj_update.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index a23a3e1440..7ae5691f76 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -51,6 +51,7 @@ Mantis ChangeLog * Fixed problem deleting bugnotes. * Fixed problem in core_API.php where constants were used before declaration * Fixed problem in core_user_API.php which caused an infinite redirect in some browsers (such as Mozilla). + * Fixed problem in manage_proj_update.php which gave a warning when editing projects with empty upload file paths. * Fixed problem with ambiguous column names in queries when using the text search or applying filters * Fixed problem with print_assign_to_option_list() not selecting the current user. * Fixed security hole in summary_graph_functions.php (Joao Gouveia: tharbad@kaotik.org) diff --git a/manage_proj_update.php b/manage_proj_update.php index 9385e41416..4f99765b61 100644 --- a/manage_proj_update.php +++ b/manage_proj_update.php @@ -16,7 +16,7 @@ } # Make sure file path has trailing slash - if ( $f_file_path[strlen($f_file_path)-1] != '/' ) { + if ( $f_file_path && $f_file_path[strlen($f_file_path)-1] != '/' ) { $f_file_path = $f_file_path.'/'; }