Notice about undefined index
-
While getting the latest news the result page ‘Syndicated Sites Settings’ shows that:
Notice: Undefined index: stored in C:\Users\martin\AppData\Roaming\Apache\htdocs\wp-sandkasten\wp-content\plugins\feedwordpress\syndicatedlink.class.php on line 281
The line is:
if ( $new !== false ) $new_count[$new]++;
I think if
$new_count[$new]
was not set before you can not increase its value.With that the notice disappears:
if ( $new !== false ) : if ( isset( $new_count[$new] ) ) : $new_count[$new]++; else: $new_count[$new] = 1; endif; endif;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notice about undefined index’ is closed to new replies.