Skip to content

Commit

Permalink
The rule name must not be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 15, 2015
1 parent e1a721c commit 9943e1f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions ingo/lib/Storage/Sql.php
Expand Up @@ -552,21 +552,19 @@ protected function _ruleToBackend(Ingo_Rule $rule)
))
: null,
'flags' => $user_rule ? $rule->flags : null,
'name' => $user_rule
? Horde_String::convertCharset(
$rule->name,
'UTF-8',
$this->_params['charset']
)
: null,
'name' => Horde_String::convertCharset(
$rule->name,
'UTF-8',
$this->_params['charset']
),
'stop' => $user_rule ? intval($rule->stop) : null,
'value' => is_null($value)
? null
: Horde_String::convertCharset(
$value,
'UTF-8',
$this->_params['charset']
)
)
);
}

Expand Down

0 comments on commit 9943e1f

Please sign in to comment.