summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcustom_model_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_model_details.inc b/custom_model_details.inc
index 903eec8..5c2b8aa 100755
--- a/custom_model_details.inc
+++ b/custom_model_details.inc
@@ -64,7 +64,7 @@ function custom_model_progress_all()
{
$page_content .= "Work is in progress for the following custom model under DWSIM Custom Model Project<hr>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$approval_date = date("Y", $row->approval_date);
@@ -75,7 +75,7 @@ function custom_model_progress_all()
$row->university,
$approval_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',