Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/oakey-b1/horde into oake…
Browse files Browse the repository at this point in the history
…y-b1-patch-2
  • Loading branch information
yunosh committed Apr 8, 2016
2 parents c462001 + 24de106 commit a4b1cda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Form/lib/Horde/Form.php
Expand Up @@ -293,9 +293,9 @@ function removeVariable(&$var)
if ((is_a($var, 'Horde_Form_Variable') && $this->_variables[$section][$i] === $var) ||
($this->_variables[$section][$i]->getVarName() == $var)) {
// Slice out the variable to be removed.
$this->_variables[$this->_currentSection] = array_merge(
array_slice($this->_variables[$this->_currentSection], 0, $i),
array_slice($this->_variables[$this->_currentSection], $i + 1));
$this->_variables[$section] = array_merge(
array_slice($this->_variables[$section], 0, $i),
array_slice($this->_variables[$section], $i + 1));

return true;
}
Expand Down

0 comments on commit a4b1cda

Please sign in to comment.