From: Jan Schneider Date: Thu, 6 Jan 2011 15:47:59 +0000 (+0100) Subject: Avoid notice if no changelog exists yet. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1c6d4cb97f2a3d63caf68f29a51fd612bac30352;p=horde.git Avoid notice if no changelog exists yet. --- diff --git a/components/lib/Components/Pear/Package/Contents.php b/components/lib/Components/Pear/Package/Contents.php index 9131a6334..8e4b669af 100644 --- a/components/lib/Components/Pear/Package/Contents.php +++ b/components/lib/Components/Pear/Package/Contents.php @@ -115,7 +115,7 @@ class Components_Pear_Package_Contents $this->_tasks->annotate($this->getPackage(), $taskfiles); // Workaround for [#9364] Components notices and fatal error - if ($this->getPackage()->_packageInfo['changelog'] == '') { + if (empty($this->getPackage()->_packageInfo['changelog'])) { unset($this->getPackage()->_packageInfo['changelog']); } $this->_filelist_factory->create($this->getPackage())->update();