Skip to content

Commit 0fd3de8

Browse files
authored
Check type before assigning to proposal object (#975)
1 parent 8375177 commit 0fd3de8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/Page/Proposal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function _get_proposals($id = null)
243243
if (!in_array($bty, $tys)) {
244244
array_push($tys, $bty);
245245
}
246-
if (!$found) {
246+
if (!$found && $bty) {
247247
$ty = $bty;
248248
$found = True;
249249
}

0 commit comments

Comments
 (0)