Avoid notice if no changelog exists yet.
authorJan Schneider <jan@horde.org>
Thu, 6 Jan 2011 15:47:59 +0000 (16:47 +0100)
committerJan Schneider <jan@horde.org>
Thu, 6 Jan 2011 15:47:59 +0000 (16:47 +0100)
components/lib/Components/Pear/Package/Contents.php

index 9131a63..8e4b669 100644 (file)
@@ -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();