Browse files

safety

  • Loading branch information...
1 parent 012f9aa commit 195000cc4d83dcfd86a9ab7dac4cb4b7c5df154e @feri feri committed Mar 11, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 OCSWriter.php
View
8 OCSWriter.php
@@ -105,7 +105,11 @@ public function writeContent($packages)
$this->writeElement('x-distributionid',$package->repoosversionid);
$this->writeElement('x-dependencyid', $package->repoosuxid);
$this->writeElement('x-obsname', $package->packageparent);
- $this->writeElement('x-history', $package->history);
+
+ if (isset($package->history))
+ {
+ $this->writeElement('x-history', $package->history);
+ }
$user = com_meego_ocs_utils::get_current_user();
if ($user)
@@ -125,7 +129,7 @@ public function writeContent($packages)
{
$this->writeElement('x-testing', true);
- if ($package->qa)
+ if (isset($package->qa))
{
$this->writeElement('x-qa', $package->qa);
}

0 comments on commit 195000c

Please sign in to comment.