import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -15,10 +15,16 @@
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata
|
||||
*/
|
||||
require_once 'Zend/Gdata.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_App_MediaEntry
|
||||
*/
|
||||
@ -29,6 +35,7 @@ require_once 'Zend/Gdata/App/MediaEntry.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -39,9 +46,7 @@ class Zend_Gdata_Entry extends Zend_Gdata_App_MediaEntry
|
||||
|
||||
public function __construct($element = null)
|
||||
{
|
||||
foreach (Zend_Gdata::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata::$namespaces);
|
||||
parent::__construct($element);
|
||||
}
|
||||
|
||||
@ -109,7 +114,7 @@ class Zend_Gdata_Entry extends Zend_Gdata_App_MediaEntry
|
||||
// ETags are special, since they can be conveyed by either the
|
||||
// HTTP ETag header or as an XML attribute.
|
||||
$etag = $attribute->nodeValue;
|
||||
if (is_null($this->_etag)) {
|
||||
if ($this->_etag === null) {
|
||||
$this->_etag = $etag;
|
||||
}
|
||||
elseif ($this->_etag != $etag) {
|
||||
|
Reference in New Issue
Block a user