Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit b0b2701

Browse files
committed
Fix: allianceid isn't always defined.
1 parent 58f3800 commit b0b2701

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/search.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ function($n) use($minskills) { return isset($minskills[$n]) ? $minskills[$n] : 0
331331
) VALUES ('
332332

333333
.$loadout['loadoutid'].','
334-
.$loadout['restrictedtoaccountid'].','
335-
.$loadout['restrictedtocorporationid'].','
336-
.$loadout['restrictedtoallianceid'].','
334+
.(int)$loadout['restrictedtoaccountid'].','
335+
.(int)$loadout['restrictedtocorporationid'].','
336+
.(int)$loadout['restrictedtoallianceid'].','
337337
.'('.implode(', ', $goodstandings).')'.','
338338
.'('.implode(', ', $excellentstandings).'),'
339339

0 commit comments

Comments
 (0)