public_html/wp-content/plugins/google-document-embedder/functions-admin.php
/**
 * Check for duplicate profile name
 *
 * @since   2.5.0.2
 * @return  int Profile id of name or -1 if no match
 */
Check for duplicate profile name
@since   2.5.0.2
@return  int Profile id of name or -1 if no match
Check for duplicate profile name @since 2 . 5 . 0 . 2 @return int Profile id of name or - 1 if no match
function gde_profile_name_exists( $name ) {
	global $wpdb;
	$table = $wpdb->prefix . 'gde_profiles';
	if ( $id = $wpdb->get_row( $wpdb->prepare( "SELECT profile_id FROM $table WHERE profile_name = %s", $name ), ARRAY_A ) ) {
		return (int) $id['profile_id'];
	} else {
		return -1;
	}
}
function gde_profile_name_exists ( $ name ) { global $ wpdb ; $ table = $ wpdb -> prefix . 'gde_profiles' ; if ( $ id = $ wpdb -> get_row ( $ wpdb -> prepare ( " SELECT profile_id FROM  $ table  WHERE profile_name = %s " , $ name ) , ARRAY_A ) ) { return ( int ) $ id [ 'profile_id' ] ; } else { return - 1 ; } }
Check for duplicate profile name
 @since   2.5.0.2
 @return  int Profile id of name or -1 if no match
Check for duplicate profile name @since 2 . 5 . 0 . 2 @return int Profile id of name or - 1 if no match