Only die when error string is not empty

Bug: T318083
Change-Id: I21c7a2b2541061a858a9791a2cb12866acd38dc5
This commit is contained in:
Alexander Vorwerk 2022-09-19 14:55:27 +02:00 committed by Zabe
parent 185bdb1371
commit 87ff7a5fec

View file

@ -85,7 +85,7 @@ trait ApiParsoidTrait {
* @param array $response
*/
private function forwardErrorsAndCacheHeaders( array $response ) {
if ( isset( $response['error'] ) ) {
if ( !empty( $response['error'] ) ) {
$this->dieWithError( $response['error'] );
}