[guadec-web] Fix some more syntax errors



commit eff1897cb69478c8a09c1764938b148604838a27
Author: Pascal Terjan <pterjan gmail com>
Date:   Mon Jul 14 17:38:13 2014 +0000

    Fix some more syntax errors

 guadec/js/calculate.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/guadec/js/calculate.php b/guadec/js/calculate.php
index 34f345c..f72bbc6 100644
--- a/guadec/js/calculate.php
+++ b/guadec/js/calculate.php
@@ -55,7 +55,7 @@
                    if ($_POST['arguments'][5] == 'false'){
                      $accom = 0;
                    }
-                  $aResult = $accom + $lunch + $fee);
+                  $aResult = $accom + $lunch + $fee;
                   if ($total_days == "Incorrect dates"){
                       $aResult = $total_days;
                   }
@@ -69,7 +69,7 @@
               }
                else {
                    $room_type = $_POST['arguments'][0];
-                   $booked = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM wp_guadec2014_registrations 
WHERE accom = 'YES' AND room=%s", $room_type);
+                   $booked = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM wp_guadec2014_registrations 
WHERE accom = 'YES' AND room=%s", $room_type));
                   $total_beds = $room_type == 'single' ? 14 : 26;
                    $aResult = ($total_beds>$booked) ? 'true' : 'false'; 
                }


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