Permalink
Browse files

pear-bug 19389 Method remove incorrect behaiviour when is null

  • Loading branch information...
pce
pce committed Jul 2, 2012
1 parent 45d5bd4 commit 983bdab25d4e3ce2b28ab026732f91d3d0399671
Showing with 2 additions and 1 deletion.
  1. +2 −1 Config/Lite.php
View
@@ -508,8 +508,9 @@ public function has($sec, $key=null)
*/
public function remove($sec, $key=null)
{
- if ((null === $key)) {
+ if (null === $key) {
$this->removeSection($sec);
+ return;
}
// global value
if (null === $sec && $key !== null) {

0 comments on commit 983bdab

Please sign in to comment.