[guadec-web] Someone not staying for a night shouldn't pay for one



commit be5f21de9e1f2fd0a5058af0aef29067b2b600a9
Author: Pascal Terjan <pterjan gmail com>
Date:   Sat Jul 12 18:51:19 2014 +0000

    Someone not staying for a night shouldn't pay for one

 guadec/js/calculate.php |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/guadec/js/calculate.php b/guadec/js/calculate.php
index e38d413..9b7dc19 100644
--- a/guadec/js/calculate.php
+++ b/guadec/js/calculate.php
@@ -28,9 +28,6 @@
        else{
          $diffDate = (31 - $aDate) + 1;
        }
-      if ($diffDate == 0){
-        $diffDate = 1;
-      }
        return $diffDate;   
     }
     
@@ -105,4 +102,4 @@
 
     }
     echo $aResult;
-?>
\ No newline at end of file
+?>


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