Skip to content

Commit

Permalink
$conatct may be empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 20, 2015
1 parent ac2f97c commit 2373039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turba/lib/Form/AddContact.php
Expand Up @@ -10,7 +10,7 @@ class Turba_Form_AddContact extends Turba_Form_ContactBase
*/
protected $_contact = null;

public function __construct($vars, Turba_Object $contact)
public function __construct($vars, Turba_Object $contact = null)
{
// @TODO: $addSources should be injected
global $addSources, $notification;
Expand Down

0 comments on commit 2373039

Please sign in to comment.