changing the for sale front page list check for visible
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 Jan 2018 15:30:53 +0000 (10:30 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 16 Jan 2018 15:30:53 +0000 (10:30 -0500)
changing visible to active

models/front/forSale/list.php

index 9b14149..143e137 100644 (file)
@@ -110,7 +110,7 @@ class GlmMembersFront_forSale_list extends GlmDataForSale
         if (isset($_REQUEST['option']) && trim($_REQUEST['option']) != '') {
             $option = $_REQUEST['option'];
         }
-        $where .= "CURDATE() <= DATE_ADD(updated, INTERVAL item_expiration DAY) AND visible = true";
+        $where .= "CURDATE() <= DATE_ADD(updated, INTERVAL item_expiration DAY) AND active = true";
 
         $item_data = $this->getList($where);
         $view_file = 'list';