fixed PDF output
This commit is contained in:
parent
14cea94915
commit
c9b305523b
|
@ -254,7 +254,7 @@ class ieee802Device extends baseModule {
|
|||
function get_pdfEntries() {
|
||||
$return = array();
|
||||
if (sizeof($this->attributes['macAddress']) > 0) {
|
||||
$return['ieee802Device_macAddress'] = '<block><key>' . _('MAC address list') . '</key><value>' . implode(', ', $this->attributes['macAddress']) . '</value></block>';
|
||||
$return['ieee802Device_macAddress'][0] = '<block><key>' . _('MAC address(es)') . '</key><value>' . implode(', ', $this->attributes['macAddress']) . '</value></block>';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
|
@ -366,13 +366,13 @@ class inetLocalMailRecipient extends baseModule {
|
|||
function get_pdfEntries() {
|
||||
$return = array();
|
||||
if (isset($this->attributes['mailRoutingAddress'][0])) {
|
||||
$return['inetLocalMailRecipient_routingAdr'] = '<block><key>' . _('Routing address') . '</key><value>' . $this->attributes['mailRoutingAddress'][0] . '</value></block>';
|
||||
$return['inetLocalMailRecipient_routingAdr'][0] = '<block><key>' . _('Routing address') . '</key><value>' . $this->attributes['mailRoutingAddress'][0] . '</value></block>';
|
||||
}
|
||||
if (sizeof($this->attributes['mailLocalAddress']) > 0) {
|
||||
$return['inetLocalMailRecipient_localAdr'] = '<block><key>' . _('Local address list') . '</key><value>' . implode(', ', $this->attributes['mailLocalAddress']) . '</value></block>';
|
||||
$return['inetLocalMailRecipient_localAdr'][0] = '<block><key>' . _('Local address list') . '</key><value>' . implode(', ', $this->attributes['mailLocalAddress']) . '</value></block>';
|
||||
}
|
||||
if (isset($this->attributes['mailHost'][0])) {
|
||||
$return['inetLocalMailRecipient_host'] = '<block><key>' . _('Mail server') . '</key><value>' . $this->attributes['mailHost'][0] . '</value></block>';
|
||||
$return['inetLocalMailRecipient_host'][0] = '<block><key>' . _('Mail server') . '</key><value>' . $this->attributes['mailHost'][0] . '</value></block>';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
|
@ -302,10 +302,10 @@ class nisMailAlias extends baseModule {
|
|||
function get_pdfEntries() {
|
||||
$return = array();
|
||||
if (isset($this->attributes['cn'][0])) {
|
||||
$return['nisMailAlias_alias'] = '<block><key>' . _('Alias name') . '</key><value>' . $this->attributes['cn'][0] . '</value></block>';
|
||||
$return['nisMailAlias_alias'][0] = '<block><key>' . _('Alias name') . '</key><value>' . $this->attributes['cn'][0] . '</value></block>';
|
||||
}
|
||||
if (sizeof($this->attributes['rfc822MailMember']) > 0) {
|
||||
$return['nisMailAlias_recipients'] = '<block><key>' . _('Recipient list') . '</key><value>' . implode(', ', $this->attributes['rfc822MailMember']) . '</value></block>';
|
||||
$return['nisMailAlias_recipients'][0] = '<block><key>' . _('Recipient list') . '</key><value>' . implode(', ', $this->attributes['rfc822MailMember']) . '</value></block>';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue