Changeset 1529


Ignore:
Timestamp:
Oct 2, 2010, 8:48:46 PM (10 years ago)
Author:
roux
Message:

séances sans moment

File:
1 edited

Legend:

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

    r1526 r1529  
    8585 
    8686  public function getShortMoment() {
    87     return preg_replace('/^0/', '', str_replace('00', '', str_replace(':', 'h', $this->moment)));
     87    if (preg_match('/:/', $this->moment))
     88      return preg_replace('/^0/', '', str_replace('00', '', str_replace(':', 'h', $this->moment)));
     89    else if (!$this->moment)
     90      return "réunion";
     91    return $this->moment;
    8892  }
    8993 
Note: See TracChangeset for help on using the changeset viewer.