fixed typo and datetime parser

This commit is contained in:
Steffen Vogel 2010-12-02 21:22:16 +01:00
parent 8df2d09bf1
commit e126747501

View file

@ -63,8 +63,10 @@ abstract class Interpreter implements InterpreterInterface {
$this->from = (isset($from)) ? self::parseDateTimeString($from, time() * 1000) : NULL;
$this->to = (isset($to)) ? self::parseDateTimeString($to, (isset($this->from)) ? $this->from : time() * 1000) : NULL;
if (!is_null($this->from) && !is_null($this->from) && $this->from > $this->to) {
throw new \Exception('&from is larger than &to parameter');
Util\Debug::log('time', $this->from, $this->to);
if (isset($this->from) && isset($this->to) && $this->from > $this->to) {
throw new \Exception('&from is larger than &to parameter');
}
}