Changeset 2418


Ignore:
Timestamp:
Oct 29, 2011, 5:16:39 PM (9 years ago)
Author:
komodo
Message:

fix pbs min_date sections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/lib/model/doctrine/Intervention.class.php

    r2411 r2418  
    202202    $lois = self::prepareLois($tlois);
    203203    $loisstring = $this->addTagLois($lois);
     204    if ($date && preg_match("/^(\d{4}-\d\d-\d\d)/", $date, $annee)) {
     205      if (!preg_match("/^".$annee[1]."\d\d:\d\d$/")
     206        $date = $annee[1]."00:00";
     207    } else print "WARNING : Intervention $this->id has incorrect date : $date";
    204208
    205209    if (!isset($lois[0]) || !$lois[0]) {
Note: See TracChangeset for help on using the changeset viewer.