| @@ -112,9 +112,9 @@ | ||
| 112 | 112 | // Updated message |
| 113 | 113 | pll_add_notice( new WP_Error( 'settings_updated', __( 'Settings saved.', 'polylang' ), 'success' ) ); |
| 114 | 114 | ob_start(); |
| 115 | 115 | settings_errors( 'polylang' ); |
| 116 | - $x->Add( array( 'what' => 'success', 'data' => ob_get_clean() ) ); | |
| 116 | + $x->Add( array( 'what' => 'success', 'data' => (string) ob_get_clean() ) ); | |
| 117 | 117 | $x->send(); |
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | |