Skip to content

Commit

Permalink
Fix the 'logqueries' setting not correctly passing the unchecked value.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 22, 2017
1 parent ccefef0 commit ce6f343
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions framework/Core/lib/Horde/Config.php
Expand Up @@ -1263,13 +1263,17 @@ public function configSQL($ctx, $node = null, $switchname = 'driverconfig')
)
);

list($default, $isDefault) = $this->__default(
$ctx . '|logqueries',
$node
? ($xpath->evaluate('string(configboolean[@name="logqueries"])', $node) ?: false)
: false);
$logqueries = array(
'_type' => 'boolean',
'required' => false,
'desc' => 'Should Horde log all queries. If selected, queries will be logged at the DEBUG level to your configured logger.',
'default' => $this->_default(
$ctx . '|logqueries',
$node ? ($xpath->evaluate('string(configboolean[@name="logqueries"])', $node) ?: false) : false),
'default' => $default,
'is_default' => $isDefault,
);

$custom_fields = array(
Expand Down

0 comments on commit ce6f343

Please sign in to comment.