Skip to content

Commit

Permalink
Merge pull request #103 from aptivate/fix-count-warning
Browse files Browse the repository at this point in the history
Fix Warning: count(): in feedwordpress.php::885 #98 (props @martinburchell )
  • Loading branch information
radgeek committed Sep 27, 2019
2 parents 999ad91 + f58ebcf commit 67b6c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedwordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ function feedwordpress_post_edit_controls () {
global $post;

$frozen_values = get_post_custom_values('_syndication_freeze_updates', $post->ID);
$frozen_post = (count($frozen_values) > 0 and 'yes' == $frozen_values[0]);
$frozen_post = ($frozen_values !== null and count($frozen_values) > 0 and 'yes' == $frozen_values[0]);

if (is_syndicated($post->ID)) :
?>
Expand Down

0 comments on commit 67b6c5a

Please sign in to comment.