Skip to content

Commit

Permalink
[mms] Fix regression in reporting capabilities (Bug #13421).
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Aug 6, 2014
1 parent c89a95c commit 533cba5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -116,9 +116,9 @@ public function query($capability, $parameter = null)
return false;
}

return (is_null($parameter) || !is_array($this->_data[$capability]))
? true
: in_array(strtoupper($parameter), $this->_data[$capability]);
return is_null($parameter) ?:
(is_array($this->_data[$capability]) &&
in_array(strtoupper($parameter), $this->_data[$capability]));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions framework/Imap_Client/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix regression in reporting capabilities (Bug #13421).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -2578,7 +2578,7 @@
<date>2014-08-04</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix regression in reporting capabilities (Bug #13421).
</notes>
</release>
</changelog>
Expand Down
Expand Up @@ -35,6 +35,7 @@ public function testQuery()
$this->assertTrue($c->query('foo'));

$this->assertFalse($c->query('BAR'));
$this->assertFalse($c->query('FOO', 'BAR'));

$c->add('bar');

Expand Down

0 comments on commit 533cba5

Please sign in to comment.