summaryrefslogtreecommitdiff
path: root/app/Date.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2015-04-04 12:21:07 +0100
committerGreg Roach <fisharebest@gmail.com>2015-04-04 12:21:07 +0100
commit19b2c6c71a9a370a7dc1864e1543aa5bffc7a3d2 (patch)
tree874fe540b1724292884c610557dfdd858fc40099 /app/Date.php
parent0fb1252ad0cc090e635d59c8016f1bd8d8ad7d0f (diff)
downloadwebtrees-19b2c6c71a9a370a7dc1864e1543aa5bffc7a3d2.tar.gz
webtrees-19b2c6c71a9a370a7dc1864e1543aa5bffc7a3d2.tar.bz2
webtrees-19b2c6c71a9a370a7dc1864e1543aa5bffc7a3d2.zip
Fix #231 - handling invalid dates
Diffstat (limited to 'app/Date.php')
-rw-r--r--app/Date.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Date.php b/app/Date.php
index fb7f2a19f2..0034443d19 100644
--- a/app/Date.php
+++ b/app/Date.php
@@ -80,7 +80,7 @@ class Date {
$this->date1 = $this->parseDate($match[2]);
$this->qual2 = $match[3];
$this->date2 = $this->parseDate($match[4]);
- } elseif (preg_match('/^(FROM|BET|TO|AND|BEF|AFT|CAL|EST|INT|ABT) (.+)/', $date, $match)) {
+ } elseif (preg_match('/^(TO|BEF|AFT|CAL|EST|INT|ABT) (.+)/', $date, $match)) {
$this->qual1 = $match[1];
$this->date1 = $this->parseDate($match[2]);
} else {