svn: /pear/pear-core/trunk/PEAR/PackageFile/ v2.php

From: Date: Sun, 20 Mar 2011 03:57:29 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/PackageFile/ v2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9822@lists.php.net to get a copy of this message
dufuz Sun, 20 Mar 2011 03:57:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309461 Log: Fixed Bug #17744: Empty changelog causes fatal error in setChangelogentry [dufuz] # Ported from branch PEAR-1.9.3 Bug: http://pear.php.net/bugs/17744 (unknown) Changed paths: U pear/pear-core/trunk/PEAR/PackageFile/v2.php Modified: pear/pear-core/trunk/PEAR/PackageFile/v2.php =================================================================== --- pear/pear-core/trunk/PEAR/PackageFile/v2.php 2011-03-20 03:57:02 UTC (rev 309460) +++ pear/pear-core/trunk/PEAR/PackageFile/v2.php 2011-03-20 03:57:29 UTC (rev 309461) @@ -799,6 +799,10 @@ { unset($pinfo['old']); unset($pinfo['xsdversion']); + // If the changelog isn't an array then it was passed in as an empty tag + if (isset($pinfo['changelog']) && !is_array($pinfo['changelog'])) { + unset($pinfo['changelog']); + } $this->_incomplete = false; $this->_packageInfo = $pinfo; }

« previous php.pear.core (#9822) next »