Skip to content

Commit 94a680f

Browse files
save button does not work while manual editing chart in block editor
1 parent ee3b47f commit 94a680f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct( Visualizer_Plugin $plugin ) {
8080
*/
8181
public function onShutdown() {
8282
$error = error_get_last();
83-
if ( $error['type'] === E_ERROR && false !== strpos( $error['file'], 'Visualizer/' ) ) {
83+
if ( $error && $error['type'] === E_ERROR && false !== strpos( $error['file'], 'Visualizer/' ) ) {
8484
do_action( 'themeisle_log_event', Visualizer_Plugin::NAME, sprintf( 'Critical error %s', print_r( $error, true ) ), 'error', __FILE__, __LINE__ );
8585
}
8686
}

0 commit comments

Comments
 (0)