Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Empty config value won’t override DB setting

Status Resolved
Add-on / Version 1.3.5
Severity Trivial
EE Version 2.6.1

JohnDWells

Sep 04, 2014

Hey Brian,

I’m setting up Snippet Sync on an existing project and need to set the sync prefix to an empty string (so that templates can continue to use existing variable naming like {snippet_name}).

However if I set the `snippet_sync_prefix` config setting to an empty string, then it won’t override the database settings (or in the case of this fresh install, the default settings) since it’s evaluating loosely as false in line 88 of ext.snippet_sync.php.

The following change to that line patches things up for me:

`if(FALSE !== $value = $this->EE->config->item($item))`

But I’ll leave it to you for a permanent fix of your preference! 😊

Cheers,
John

#1

BoldMinded (Brian)

Thanks for this John, I’ll take a look at this soon.

#2

BoldMinded (Brian)

Added this to my local codebase, will be included in the next release whenever that is 😊

Login to reply