Merge pull request #1304 from dnos/chamilo-pr/1.11.x

When updating a session in webservice, take into account only nolimit parameter
ofaj
Yannick Warnier 9 years ago committed by GitHub
commit 77600e4784
  1. 2
      main/webservices/registration.soap.php

@ -4190,8 +4190,6 @@ function WSEditSession($params)
continue;
}
if (empty($nolimit) && $duration) $nolimit = 1;
if (empty($nolimit)) {
$date_start = "$year_start-".(($month_start < 10) ? "0$month_start" : $month_start)."-".(($day_start < 10) ? "0$day_start" : $day_start).' 00:00:00';
$date_end = "$year_end-".(($month_end < 10) ? "0$month_end" : $month_end)."-".(($day_end < 10) ? "0$day_end" : $day_end).' 23:59:59';

Loading…
Cancel
Save