Repository: airavata-php-gateway Updated Branches: refs/heads/develop 6bc768cad -> 40b625df9
fixing bug Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/40b625df Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/40b625df Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/40b625df Branch: refs/heads/develop Commit: 40b625df95c074b3474a2805d2c95178e41f0c61 Parents: 6bc768c Author: scnakandala <[email protected]> Authored: Tue Jul 5 17:44:54 2016 -0400 Committer: scnakandala <[email protected]> Committed: Tue Jul 5 17:44:54 2016 -0400 ---------------------------------------------------------------------- app/libraries/ExperimentUtilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/40b625df/app/libraries/ExperimentUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php index adf5738..7dcfda0 100644 --- a/app/libraries/ExperimentUtilities.php +++ b/app/libraries/ExperimentUtilities.php @@ -432,7 +432,7 @@ class ExperimentUtilities if($_FILES['optInputFiles']){ $uriList = ""; - for($i=0; $i < len($_FILES['optInputFiles']['name']); $i++){ + for($i=0; $i < count($_FILES['optInputFiles']['name']); $i++){ $filePath = ExperimentUtilities::$experimentPath . $_FILES['optInputFiles']['name'][$i]; // check if file already exists @@ -522,7 +522,7 @@ class ExperimentUtilities Please try again later or report a bug using the link in the Help menu.'); } }else if(is_array($file) and $file['name']){ - for($i =0 ; $i< len($file['name']); $i++){ + for($i =0 ; $i< count($file['name']); $i++){ if ($file['error'][$i] > 0) { $uploadSuccessful = false; CommonUtilities::print_error_message('<p>Error uploading file ' . $file['name'][$i] . ' !
