diff --git a/src/RRule.php b/src/RRule.php index 6b2c155..ea5b4c3 100755 --- a/src/RRule.php +++ b/src/RRule.php @@ -1939,7 +1939,7 @@ class RRule implements \Iterator, \ArrayAccess, \Countable static protected function i18nLoad($locale) { if ( ! preg_match('/^([a-z]{2})(_[A-Z]{2})?$/', $locale, $matches) ) { - throw new \InvalidArgumentException('The locale option does not look like a valid locale: '.$opt['locale']); + throw new \InvalidArgumentException('The locale option does not look like a valid locale: '.$locale); } $files = array(); @@ -2243,4 +2243,4 @@ class RRule implements \Iterator, \ArrayAccess, \Countable return $str; } -} \ No newline at end of file +}