diff --git a/kronolith/lib/Ajax/Application/Handler.php b/kronolith/lib/Ajax/Application/Handler.php index 4fc05fa7060..115a10d24b7 100644 --- a/kronolith/lib/Ajax/Application/Handler.php +++ b/kronolith/lib/Ajax/Application/Handler.php @@ -914,10 +914,14 @@ public function getFreeBusy() { $result = new stdClass; if ($this->vars->email) { - try { - $result->fb = Kronolith_FreeBusy::get($this->vars->email, true); - } catch (Exception $e) { - $GLOBALS['notification']->push($e->getMessage(), 'horde.warning'); + $rfc822 = new Horde_Mail_Rfc822(); + $res = $rfc822->parseAddressList($this->vars->email); + if ($res[0] && $res[0]->host) { + try { + $result->fb = Kronolith_FreeBusy::get($this->vars->email, true); + } catch (Exception $e) { + $GLOBALS['notification']->push($e->getMessage(), 'horde.warning'); + } } } elseif ($this->vars->resource) { try {