Index: /mods/wpsg_mod_productindex.class.php
===================================================================
--- /mods/wpsg_mod_productindex.class.php	(revision 6623)
+++ /mods/wpsg_mod_productindex.class.php	(revision 6627)
@@ -95,5 +95,5 @@
 			if (is_admin()) return;
 
-			$index_page = get_post_meta($id, 'wpsg_mod_productindex_active', true);
+			$index_page = get_post_meta(get_the_id(), 'wpsg_mod_productindex_active', true);
 
 			if ($index_page === '1')
