summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992022-02-16 13:55:31 +0530
committerGitHub2022-02-16 13:55:31 +0530
commit22df5245d1ebc7307811cdfd507bc95a5e992e6c (patch)
tree2ced94bdf5ac759833d1c23a276beb3c23f3ef72
parent88f2ea0a9c615ec3bf80c6ac5595c1c45f16d0d2 (diff)
parente5cea562213178a18486a29ca93bd677e56de6c7 (diff)
downloadcfd_lab_migration-22df5245d1ebc7307811cdfd507bc95a5e992e6c.tar.gz
cfd_lab_migration-22df5245d1ebc7307811cdfd507bc95a5e992e6c.tar.bz2
cfd_lab_migration-22df5245d1ebc7307811cdfd507bc95a5e992e6c.zip
Merge pull request #6 from Saketh1499/development
Arranging serial number in descending order
-rwxr-xr-xlab_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab_details.inc b/lab_details.inc
index baf30a3..9b95d43 100755
--- a/lab_details.inc
+++ b/lab_details.inc
@@ -16,7 +16,7 @@ function lab_migration_completed_labs_all()
else
{
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$approval_date = date("Y", $row->approval_date);
@@ -26,7 +26,7 @@ function lab_migration_completed_labs_all()
l($row->lab_title, "lab-migration/lab-migration-run/" . $row->id),
$approval_date
);
- $i++;
+ $i--;
}
$preference_header = array(
'No',