From d1721620fd8bafd26798e7f3c3946db6dd68b3d5 Mon Sep 17 00:00:00 2001 From: svollbehr Date: Mon, 2 May 2011 19:35:18 +0000 Subject: [PATCH] Fix a bug in non-existing frame initialization git-svn-id: http://php-reader.googlecode.com/svn/trunk@218 51a70ab9-7547-0410-9469-37e369ee0574 --- src/Zend/Media/Id3v2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zend/Media/Id3v2.php b/src/Zend/Media/Id3v2.php index 21c0d4c..92b9abd 100644 --- a/src/Zend/Media/Id3v2.php +++ b/src/Zend/Media/Id3v2.php @@ -669,7 +669,7 @@ final class Zend_Media_Id3v2 extends Zend_Media_Id3_Object */ public function __get($name) { - if (isset($this->_frames[strtoupper($name)])) { + if (!empty($this->_frames[strtoupper($name)])) { return $this->_frames[strtoupper($name)][0]; } if (method_exists($this, 'get' . ucfirst($name))) {