Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix check for assignee
  • Loading branch information
stevehenty committed Sep 16, 2017
1 parent a2a2deb commit 44f9d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/steps/class-step.php
Expand Up @@ -1793,9 +1793,9 @@ public function add_note( $note, $is_user_event = false, $deprecated = false ) {

if ( $is_user_event ) {
$assignee_key = $this->get_current_assignee_key();
if ( $assignee_key && $assignee_key instanceof Gravity_Flow_Assignee ) {
if ( $assignee_key ) {
$assignee = $this->get_assignee( $assignee_key );
if ( $assignee->get_type() === 'user_id' ) {
if ( $assignee_key instanceof Gravity_Flow_Assignee && $assignee->get_type() === 'user_id' ) {
$user_id = $assignee->get_id();
$user_name = $assignee->get_display_name();
}
Expand Down

0 comments on commit 44f9d91

Please sign in to comment.