Commit 5df8e371 authored by maxxwv's avatar maxxwv Committed by Kyle B. Johnson

Add check to make sure array index tag is set before attempting to access it (#3091)

Add check before accessing the 'tag' array index
parent 1f732948
......@@ -42,7 +42,7 @@ abstract class NF_Abstracts_MergeTags
if( empty( $matches[0] ) ) return $subject;
foreach( $this->merge_tags as $merge_tag ){
if( ! in_array( $merge_tag[ 'tag' ], $matches[0] ) ) continue;
if( ! isset( $merge_tag[ 'tag' ] ) || ! in_array( $merge_tag[ 'tag' ], $matches[0] ) ) continue;
if( ! isset($merge_tag[ 'callback' ])) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment