// Load Add-On Management Settings data
/* None - Need to figure out a smooth way to do this.
*/
-$glmMembersBillingSettings = $wpdb->get_row( "SELECT * FROM ".GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX."settings WHERE id = 1", ARRAY_A );
-unset($glmMembersBillingSettings['id']);
+if ( $glmMembersDatabasePluginVersion ) {
+ $glmMembersBillingSettings = $wpdb->get_row( "SELECT * FROM ".GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX."settings WHERE id = 1", ARRAY_A );
+ unset($glmMembersBillingSettings['id']);
-$glmMembersBillingManagement = $wpdb->get_row( "SELECT * FROM ".GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX."management WHERE id = 1", ARRAY_A );
-unset($glmMembersBillingManagement['id']);
+ $glmMembersBillingManagement = $wpdb->get_row( "SELECT * FROM ".GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX."management WHERE id = 1", ARRAY_A );
+ unset($glmMembersBillingManagement['id']);
+}
function glmMembersBillingRegisterAddOn($addOns) {