From: Jan Schneider Date: Wed, 27 May 2009 12:42:09 +0000 (+0200) Subject: Check if options is set. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ad0b71a3e3e47e338238573fa42b447714b63599;p=horde.git Check if options is set. --- diff --git a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php index 5aca34d52..96bf78390 100644 --- a/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php +++ b/framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php @@ -631,7 +631,7 @@ class Horde_Date_Parser_Locale_Base } // handle ambiguous times if ambiguousTimeRange is specified - if ($options['ambiguousTimeRange'] != 'none') { + if (!isset($options['ambiguousTimeRange']) || $options['ambiguousTimeRange'] != 'none') { $ttokens = array(); foreach ($tokens as $i => $t0) { $ttokens[] = $t0;