Skip to content

Commit 49a0bc6

Browse files
author
Denis Cornehl
committed
error-handling for new api-version
1 parent 7165e3f commit 49a0bc6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

phpcclib.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,19 +1204,18 @@ public function __construct($message, $status)
12041204
else if (strlen($rc) > 0)
12051205
$this->message = $rc;
12061206
else
1207-
$msgs = $obj;
1207+
$this->message = $message;
12081208
}
12091209

12101210
if (count($msgs) > 0) {
12111211
$this->message = '';
12121212

1213-
12141213
if (is_array($msgs) || $msgs instanceof Traversable || $msgs instanceof stdClass) {
12151214
foreach ($msgs as $k => $v) {
12161215
$this->message .= sprintf("%s: %s\n", $k, $v);
12171216
}
12181217
}else
1219-
$this->message = $msgs;
1218+
$this->message = $message;
12201219

12211220
}
12221221
}

0 commit comments

Comments
 (0)