cvs: pear /Net_UserAgent_Mobile/Mobile DoCoMo.php
| From: | KUBO Atsuhiro | Date: | Thu, 05 Jun 2003 15:03:38 +0000 |
| Subject: | cvs: pear /Net_UserAgent_Mobile/Mobile DoCoMo.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-10710@lists.php.net to get a copy of this message | ||
kuboa Thu Jun 5 11:03:38 2003 EDT
Modified files:
/pear/Net_UserAgent_Mobile/Mobile DoCoMo.php
Log:
- makeDisplay(): Fixed the logic error which entered at the time of
505i support.
Index: pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php
diff -u pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.9
pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.10
--- pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php:1.9 Fri May 23 06:45:57 2003
+++ pear/Net_UserAgent_Mobile/Mobile/DoCoMo.php Thu Jun 5 11:03:38 2003
@@ -16,7 +16,7 @@
// | Authors: KUBO Atsuhiro <kubo@isite.co.jp> |
// +----------------------------------------------------------------------+
//
-// $Id: DoCoMo.php,v 1.9 2003/05/23 10:45:57 kuboa Exp $
+// $Id: DoCoMo.php,v 1.10 2003/06/05 15:03:38 kuboa Exp $
//
require_once('Net/UserAgent/Mobile/Common.php');
@@ -68,7 +68,7 @@
* @category Networking
* @author KUBO Atsuhiro <kubo@isite.co.jp>
* @access public
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
* @see Net_UserAgent_Mobile_Common
* @link http://www.nttdocomo.co.jp/p_s/imode/spec/useragent.html
* @link http://www.nttdocomo.co.jp/p_s/imode/tag/imodetag.html
@@ -207,14 +207,12 @@
*/
function makeDisplay()
{
- if ($this->_display_bytes === '') {
- $display = Net_UserAgent_Mobile_DoCoMoDisplayMap::get($this->_model);
- } else {
+ $display = Net_UserAgent_Mobile_DoCoMoDisplayMap::get($this->_model);
+ if ($this->_display_bytes !== '') {
list($width_bytes, $height_bytes) =
explode('*', $this->_display_bytes);
- $display = array('width_bytes' => $width_bytes,
- 'height_bytes' => $height_bytes
- );
+ $display['width_bytes'] = $width_bytes;
+ $display['height_bytes'] = $height_bytes;
}
return new Net_UserAgent_Mobile_Display($display);
}