Skip to content

Commit 28e815e

Browse files
committed
Fixed statuses not showing in arrayToCsv
1 parent 23a8805 commit 28e815e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Protocols/EPP/eppResponses/eppInfoDomainResponse.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ public function getDomainStatuses() {
6565
* @return string statuses
6666
*/
6767
public function getDomainStatusCSV() {
68-
return parent::arrayToCSV($this->getDomainStatuses());
68+
$statuses = [];
69+
foreach ($this->getDomainStatuses() as $status) {
70+
/* @var $status eppStatus */
71+
$statuses[] = $status->getStatusname();
72+
}
73+
return parent::arrayToCSV($statuses);
6974
}
7075

7176
/**

Protocols/EPP/eppResponses/eppInfoResponse.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ protected function arrayToCSV($arr) {
1616
$ret .= ',';
1717
}
1818
$ret .= $value;
19-
} else {
20-
if ($value instanceof eppStatus) {
21-
if (strlen($ret)) {
22-
$ret .= ',';
23-
}
24-
$ret .= $value->getStatusname();
25-
}
2619
}
2720
}
2821
}

0 commit comments

Comments
 (0)