Skip to content

Commit

Permalink
Existence check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 2, 2014
1 parent a3dceab commit e911a11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/ActiveSync/lib/Horde/ActiveSync/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,9 @@ public function normalizePoomContactsDates($date, $toEas = false)
protected function _getClientType()
{
// Differentiate between the deviceType and the client app.
if (strpos($this->properties[self::OS], 'Android') !== false ||
strtolower($this->deviceType) == self::TYPE_ANDROID) {
if ((!empty($this->properties[self::OS]) &&
strpos($this->properties[self::OS], 'Android') !== false) ||
strtolower($this->deviceType) == self::TYPE_ANDROID) {

// We can detect native android and TouchDown so far.
// Moxier does not distinguish itself, so we can't sniff it.
Expand Down

0 comments on commit e911a11

Please sign in to comment.