From 19b2c6c71a9a370a7dc1864e1543aa5bffc7a3d2 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sat, 4 Apr 2015 12:21:07 +0100 Subject: Fix #231 - handling invalid dates --- app/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Date.php') 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 { -- cgit v1.3