Check if options is set.
authorJan Schneider <jan@horde.org>
Wed, 27 May 2009 12:42:09 +0000 (14:42 +0200)
committerJan Schneider <jan@horde.org>
Wed, 27 May 2009 12:42:09 +0000 (14:42 +0200)
framework/Date_Parser/lib/Horde/Date/Parser/Locale/Base.php

index 5aca34d..96bf783 100644 (file)
@@ -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;