We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe368a5 commit 139abfeCopy full SHA for 139abfe
phpcclib.php
@@ -1197,18 +1197,18 @@ public function __construct($message, $status)
1197
$errors = $v;
1198
}
1199
1200
- if (count($errors) > 0) {
1201
- $this->message = '';
+ $this->message = '';
+
1202
+ if (strlen($rc) > 0)
1203
+ $this->message .= "$rc\n";
1204
1205
+ if (count($errors) > 0) {
1206
foreach ($errors as $k => $v) {
1207
$this->message .= sprintf("%s: %s\n", $k, $v);
1208
- } else if (strlen($rc) > 0)
- $this->message = $rc;
- else
1209
- {
1210
- //fallback, old error-format
1211
+ }
+ if ($this->message == '') {
1212
foreach ($obj as $k => $v) {
1213
1214
0 commit comments