Skip to content

Commit 0a7df65

Browse files
authored
gw-cache-buster.php: Fixed an issue with Cache Buster plugin causing fatal error.
1 parent 2a8c964 commit 0a7df65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gravity-forms/gw-cache-buster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://gravitywiz.com/cache-busting-with-gravity-forms/
1010
* Description: Bypass your website cache when loading a Gravity Forms form.
1111
* Author: Gravity Wiz
12-
* Version: 0.6.3
12+
* Version: 0.6.4
1313
* Author URI: https://gravitywiz.com
1414
*/
1515
class GW_Cache_Buster {
@@ -68,7 +68,7 @@ public function set_form_styles( $form, $style_settings, $form_theme ) {
6868
// Form styles specifically set to false disables inline form css styles.
6969
$form_styles = false;
7070
} else {
71-
$form_styles = ! empty( $style_settings ) ? json_decode( $style_settings, true ) : array();
71+
$form_styles = is_array( $style_settings ) ? $style_settings : ( ! empty( $style_settings ) ? json_decode( $style_settings, true ) : array() );
7272
}
7373

7474
// Removing theme from styles for consistency. $form['theme'] should be used instead.

0 commit comments

Comments
 (0)