Skip to content

Commit

Permalink
Return the object, not the classname
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 13, 2015
1 parent 4f465c4 commit 358d04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Pgp/lib/Horde/Pgp/Element.php
Expand Up @@ -54,7 +54,7 @@ static public function create($data)
{
$class = get_called_class();
if ($data instanceof $class) {
return $class;
return $data;
}

$data = Horde_Pgp_Armor::create($data);
Expand Down

0 comments on commit 358d04c

Please sign in to comment.