[guadec-web] Display NA for single room roommates



commit 1c04c1de9bf88554ddd65920d971784ed7c4ca2a
Author: Alexandre Franke <alexandre franke gmail com>
Date:   Tue Jul 22 20:52:49 2014 +0200

    Display NA for single room roommates

 guadec/access-register.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/guadec/access-register.php b/guadec/access-register.php
index 0bc7708..8eb873e 100644
--- a/guadec/access-register.php
+++ b/guadec/access-register.php
@@ -160,7 +160,7 @@ function display_accommodation($result){
                echo "<td>"; echo $results['room']; echo "</td>";
                        if ($results['room'] == 'single') { $total_single += 1;}
                        else if ($results['room'] == 'double') { $total_double += 1;}
-               echo "<td>"; echo $results['roommate']; echo "</td>";
+               echo "<td>"; if ($results['room'] == 'double') { echo $results['roommate'];} else { echo 
"NA";}; echo "</td>";
                echo "<td>"; echo $results['accomfee']; echo "</td>";
                        $total_accomfee += $results['accomfee'];
                echo "<td>"; echo $results['payment']; echo "</td>";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]