Skip to content

Commit

Permalink
Allow the results of getLastStartElement() to be passed directly to i…
Browse files Browse the repository at this point in the history
…sEmptyElement.
  • Loading branch information
mrubinsk committed Jan 28, 2014
1 parent afe5fc6 commit f557c80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Decoder.php
Expand Up @@ -175,8 +175,11 @@ public function getElement()
*
* @return boolean True if $el is an empty start tag, otherwise false.
*/
public function isEmptyElement(array $el)
public function isEmptyElement($el)
{
if (!is_array($el)) {
return false;
}
switch ($el[self::EN_TYPE]) {
case self::EN_TYPE_STARTTAG:
return !($el[self::EN_FLAGS] & self::EN_FLAGS_CONTENT);
Expand Down

0 comments on commit f557c80

Please sign in to comment.