turn off impressions for members
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Apr 2017 17:49:49 +0000 (13:49 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Apr 2017 17:49:49 +0000 (13:49 -0400)
return true if type is list

Toolkit/Members/Exposure.php

index 6dca33e..fa45aaa 100755 (executable)
@@ -189,6 +189,9 @@ class Toolkit_Members_Exposure implements SplObserver
      */
     public function runUpdate()
     {
+        if ( $this->_type == 'list' ) {
+            return true;
+        }
                //      Make sure the member actually exists in the members table
                //      before we try to manipulate its exposure count. If they don't
                //      exists, then just get us out of here so we don't throw any errors