From: Steve Sutton Date: Thu, 25 Aug 2016 17:31:42 +0000 (-0400) Subject: Fix an error if nothing is passed in. X-Git-Tag: v1.1.0^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=84b3a07e5a62c12cb0708fd9834ebd50ebe25a70;p=WP-Plugins%2Fglm-member-db-leads.git Fix an error if nothing is passed in. If no id then don't do anything. --- diff --git a/index.php b/index.php index fbcdd03..06df0a1 100644 --- 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