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:
svollbehr
2011-05-02 19:35:18 +00:00
parent 6496cff709
commit d1721620fd

View File

@@ -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))) {