From 1c8a8264a88299f6dc8019846666348dd8a77cf4 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Sat, 29 Aug 2015 13:51:08 -0400 Subject: [PATCH] No need to check if empty --- class/main.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/main.class.php b/class/main.class.php index 3c8de5e..d1beb7c 100644 --- a/class/main.class.php +++ b/class/main.class.php @@ -45,7 +45,7 @@ class CWV3 { if ( is_singular() && isset( $post->ID ) ) { $cat_gated = $this->is_cat_gated( $post->ID ); - if ( ! empty( $cat_gated ) ) { + if ( $cat_gated ) { // Return the category cookie name like _cat_### return '_cat_' . $cat_gated; } else if ( $this->is_gated( $post->ID ) ) {