use fulcrm_apiv2_client_id(); fixup problem with payload_error_msg
This commit is contained in:
		@ -152,9 +152,11 @@ function fulcrm_webhook_webhook( $uuid ) {
 | 
				
			|||||||
            $payload = json_decode( file_get_contents( "php://input" ), $assoc = TRUE );
 | 
					            $payload = json_decode( file_get_contents( "php://input" ), $assoc = TRUE );
 | 
				
			||||||
            $payload_error = json_last_error();
 | 
					            $payload_error = json_last_error();
 | 
				
			||||||
            $payload_error_msg = json_last_error_msg();
 | 
					            $payload_error_msg = json_last_error_msg();
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					            $payload_error_msg = 'no payload';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $client_id = variable_get( 'fulcrm_apiv2_client_id' );
 | 
					        $client_id = fulcrm_apiv2_client_id();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ( fulcrm_apiv2_prevent_loop( $headers ) ) {
 | 
					        if ( fulcrm_apiv2_prevent_loop( $headers ) ) {
 | 
				
			||||||
            $op = null;
 | 
					            $op = null;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user