continue;
}
- if (!isset($this->data[$package])) {
- $this->data[$package] = array();
- }
-
$ipAddresses = array();
foreach ($tableNames as $tableName) {
$ipAddresses = array_merge(
);
}
- $this->data[$package]['ipAddresses'] = $ipAddresses;
+ if (!empty($ipAddresses)) {
+ if (!isset($this->data[$package])) $this->data[$package] = array();
+ $this->data[$package]['ipAddresses'] = $ipAddresses;
+ }
}
$this->data['@@generator'] = array(
if ($optionValue === '') {
continue;
}
+ else if ($option->optionName === 'gender' && $optionValue === '0') {
+ // exclude the gender if there has been no selection
+ continue;
+ }
$data[$option->optionName] = $optionValue;
}