From abfe98b3435aca352309537c1a5cb2755e86104f Mon Sep 17 00:00:00 2001
From: Mohammad Jangda <batmoo@gmail.com>
Date: Tue, 30 Jul 2013 13:15:15 -0400
Subject: [PATCH] Regression: fix incorrect empty check in get_site_info

We want to check that the the ID is there if the post exists, not the other way around.
---
 includes/class-wp-push-syndication-server.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php
index 209c71d..1da1b07 100644
--- a/includes/class-wp-push-syndication-server.php
+++ b/includes/class-wp-push-syndication-server.php
@@ -996,7 +996,7 @@ class WP_Push_Syndication_Server {
 			return array( 'state' => 'new' );
 
 		foreach( $slave_post_states as $state => $sites  ) {
-			if( isset( $sites[ $site_ID ] ) && is_array( $sites[ $site_ID ] ) && empty( $sites[ $site_ID ]['ext_ID'] )   ) {
+			if( isset( $sites[ $site_ID ] ) && is_array( $sites[ $site_ID ] ) && ! empty( $sites[ $site_ID ]['ext_ID'] )   ) {
 				if( $client->is_post_exists( $sites[ $site_ID ]['ext_ID'] ) ) {
 					$info = array(
 						'state'     => $state,
-- 
GitLab