You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/07/07 19:27:40 UTC
[36/50] [abbrv] airavata-php-gateway git commit: fixing bug
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/master
Commit: 40b625df95c074b3474a2805d2c95178e41f0c61
Parents: 6bc768c
Author: scnakandala <su...@gmail.com>
Authored: Tue Jul 5 17:44:54 2016 -0400
Committer: scnakandala <su...@gmail.com>
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] . ' !