summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-09-24 12:15:40 +0530
committerSashi202019-09-24 12:15:40 +0530
commita8bff8037b6198e0fa788bd733f17f5eec033d9a (patch)
treefde992add84773a3333461922938b4f56fe2673c
parent94abd3880fcf0322b0aa81eecd3c948890d780d5 (diff)
downloadDWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.tar.gz
DWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.tar.bz2
DWSIM_lab_migration-a8bff8037b6198e0fa788bd733f17f5eec033d9a.zip
Minor code changes
-rwxr-xr-xfull_download.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/full_download.inc b/full_download.inc
index 79c4983..e65c702 100755
--- a/full_download.inc
+++ b/full_download.inc
@@ -84,7 +84,7 @@ function lab_migration_download_full_lab()
/* creating zip archive on the server */
$zip = new ZipArchive;
$zip->open($zip_filename, ZipArchive::CREATE);
- /* approved solutions */
+
$query = db_select('lab_migration_experiment');
$query->fields('lab_migration_experiment');
$query->condition('proposal_id', $lab_id);
@@ -97,6 +97,7 @@ function lab_migration_download_full_lab()
$query->condition('experiment_id', $experiment_row->id);
$query->condition('approval_status', 1);
$solution_q = $query->execute();
+ /* approved solutions */
while ($solution_row = $solution_q->fetchObject())
{
$CODE_PATH = 'CODE' . $solution_row->code_number . '/';