Changeset 2422


Ignore:
Timestamp:
Oct 29, 2011, 5:22:45 PM (9 years ago)
Author:
roux
Message:

reoups

File:
1 edited

Legend:

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

    r2420 r2422  
    138138
    139139    if ($date && preg_match("/^(\d{4}-\d\d-\d\d)/", $date, $annee)) {
    140       if (!preg_match("/^".$annee[1]."\d\d:\d\d$/"))
     140      if (!preg_match("/^".$annee[1]."\d\d:\d\d$/", $date))
    141141        $date = $annee[1]."00:00";
    142142    } else print "WARNING : Intervention $this->id has incorrect date : $date";
Note: See TracChangeset for help on using the changeset viewer.