Skip to content
Snippets Groups Projects
Commit 87622e47 authored by Lucas García's avatar Lucas García
Browse files

Merge branch 'fix/api-key-getter' into 'main'

Fix API Key getter

See merge request coopdevs/website/wp/wp-plugins/wpct-odoo-connect!6
parents b2bc9849 c5bbd33e
No related branches found
No related tags found
No related merge requests found
......@@ -82,5 +82,5 @@ function wpct_oc_settings_section_callback()
*/
function wpct_oc_get_api_key()
{
return isset(get_option('wpct_oc_api_key')) ? get_option('wpct_oc_api_key') : '';
return get_option('wpct_oc_api_key') ? get_option('wpct_oc_api_key') : '';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment