From 2ea2f46ec8ade557f96eab9abc79fcab1d04fbd1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 25 Jan 2018 09:13:31 -0800 Subject: [PATCH] braes --- web/includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 2214d1cff..14f70d6a7 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2132,10 +2132,11 @@ function ajaxResponse( $result=false ) { if ( function_exists( 'ajaxCleanup' ) ) ajaxCleanup(); $response = array( 'result'=>'Ok' ); - if ( is_array( $result ) ) + if ( is_array( $result ) ) { $response = array_merge( $response, $result ); - elseif ( !empty($result) ) + } elseif ( !empty($result) ) { $response['message'] = $result; + } header( 'Content-type: text/plain' ); exit( jsonEncode( $response ) ); }