[db] Do not trigger a DATABASE event if db_directory_enable_bypath does

not change the library
This commit is contained in:
chme 2017-12-17 09:13:09 +01:00
parent 1b8b0b2d83
commit 471eb9db46
1 changed files with 1 additions and 1 deletions

View File

@ -3615,7 +3615,7 @@ db_directory_enable_bycookie(uint32_t cookie, char *path)
int
db_directory_enable_bypath(char *path)
{
#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q;"
#define Q_TMPL "UPDATE directories SET disabled = 0 WHERE virtual_path = %Q AND disabled <> 0;"
char *query;
int ret;