Skip to content

Commit 32a7457

Browse files
committed
Try fix for undefined 'ha' index
1 parent 060a14f commit 32a7457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundled-libs/XML/RPC.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ function parseResponse($data = '')
15321532
$r = new XML_RPC_Response($v);
15331533
}
15341534
}
1535-
$r->hdrs = preg_split("@\r?\n@", $XML_RPC_xh[$parser]['ha'] ?: '');
1535+
$r->hdrs = preg_split("@\r?\n@", array_key_exists('ha', $XML_RPC_xh[$parser]) ? $XML_RPC_xh[$parser]['ha'] : '');
15361536
return $r;
15371537
}
15381538
}

0 commit comments

Comments
 (0)