Skip to content

Commit

Permalink
Update php/libraries/Candidate.class.inc
Browse files Browse the repository at this point in the history
Co-Authored-By: davidblader <dblader.mcin@gmail.com>
  • Loading branch information
johnsaigle and davidblader committed Jan 23, 2019
1 parent c6451a8 commit bf286eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/libraries/Candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ class Candidate
$where = array('cid' => $candID);
$result = $db->pselectCol($query, $where);

return is_array($result) ? array_shift($result) : '';
return (is_array($result) && count($result) > 0) ? array_shift($result) : '';
}

/**
Expand Down

0 comments on commit bf286eb

Please # to comment.