Changeset 1529
- Timestamp:
- Oct 2, 2010, 8:48:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/model/doctrine/Seance.class.php
r1526 r1529 85 85 86 86 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; 88 92 } 89 93
Note: See TracChangeset
for help on using the changeset viewer.