ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10459


Ignore:
Timestamp:
Jan 27, 2009, 3:45:24 AM (12 years ago)
Author:
ebihara
Message:

#3328:fixed fatal error when the user, has invalid UserAgent?, access to the mobile application

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/request/sfOpenPNEWebRequest.class.php

    r10121 r10459  
    3232  public function getMobile()
    3333  {
    34     if (!$this->userAgentMobileInstance) {
     34    if (!$this->userAgentMobileInstance)
     35    {
    3536      $this->userAgentMobileInstance = Net_UserAgent_Mobile::factory();
     37      if ($this->userAgentMobileInstance instanceof Net_UserAgent_Mobile_Error)
     38      {
     39        $this->userAgentMobileInstance = new Net_UserAgent_Mobile_NonMobile('');
     40      }
    3641    }
    3742
Note: See TracChangeset for help on using the changeset viewer.