Browse Source

Fix fatal error in unused ws

Yannick Warnier 9 years ago
parent
commit
1238165247
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/webservices/webservice_session.php

+ 2 - 2
main/webservices/webservice_session.php

@@ -52,7 +52,7 @@ class WSSession extends WS
 		}
 
 		$coachStartDate = null;
-		if (!empty($nb_days_access_before) {
+		if (!empty($nb_days_access_before)) {
 			$day = intval($nb_days_access_before);
 			$coachStartDate = date('Y-m-d ', strtotime($start_date. ' + '.$day.' days'));
 		}
@@ -210,7 +210,7 @@ class WSSession extends WS
 			}
 
             $coachStartDate = null;
-            if (!empty($nb_days_access_before) {
+            if (!empty($nb_days_access_before)) {
                 $day = intval($nb_days_access_before);
                 $coachStartDate = date('Y-m-d ', strtotime($start_date. ' + '.$day.' days'));
             }