Fix a bug in non-existing frame initialization
git-svn-id: http://php-reader.googlecode.com/svn/trunk@218 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
@@ -669,7 +669,7 @@ final class Zend_Media_Id3v2 extends Zend_Media_Id3_Object
|
|||||||
*/
|
*/
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
if (isset($this->_frames[strtoupper($name)])) {
|
if (!empty($this->_frames[strtoupper($name)])) {
|
||||||
return $this->_frames[strtoupper($name)][0];
|
return $this->_frames[strtoupper($name)][0];
|
||||||
}
|
}
|
||||||
if (method_exists($this, 'get' . ucfirst($name))) {
|
if (method_exists($this, 'get' . ucfirst($name))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user