Skip to content

Commit dd5a30b

Browse files
committed
Fix Flex
1 parent 7e06a74 commit dd5a30b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,11 @@ public function Template($altText, $template) {
767767
}
768768

769769
public function Flex($altText, $contents) {
770+
foreach($contents as $num => $var){
771+
if($var == null){
772+
unset($contents[$num]);
773+
}
774+
}
770775
$MsgObject = array(
771776
"type" => "flex",
772777
"altText" => $altText,

0 commit comments

Comments
 (0)