Fix an error if nothing is passed in.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 25 Aug 2016 17:31:42 +0000 (13:31 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 25 Aug 2016 17:31:42 +0000 (13:31 -0400)
If no id then don't do anything.

index.php

index fbcdd03..06df0a1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -236,7 +236,7 @@ class glm_member_db_leads_bootstrap {
 // Cron task to generate the Leads Stats
 add_action(
     GLM_MEMBERS_LEADS_PLUGIN_CRON_EVENT,
-    function( $id ) {
+    function( $id = null ) {
         if ( $id ) {
             $admin_url                   = admin_url();
             $ical_feed_import_url        = $admin_url