Skip to content

Commit 0a13fad

Browse files
committed
Small fix.
1 parent ba738a1 commit 0a13fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReduxCore/inc/class.redux_api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public static function setHelpSidebar( $opt_name = "", $content = "" ) {
408408
public static function setArgs( $opt_name = "", $args = array() ) {
409409
self::check_opt_name( $opt_name );
410410
if ( ! empty( $opt_name ) && ! empty( $args ) && is_array( $args ) ) {
411-
if ( isset( self::$args[ $opt_name ]['clearArgs'] ) ) {
411+
if ( isset( self::$args[ $opt_name ] ) && isset( self::$args[ $opt_name ]['clearArgs'] ) ) {
412412
self::$args[ $opt_name ] = array();
413413
}
414414
self::$args[ $opt_name ] = wp_parse_args( $args, self::$args[ $opt_name ] );

0 commit comments

Comments
 (0)