Skip to content

Commit 7e06a74

Browse files
committed
Fix Template
1 parent fda6ed0 commit 7e06a74

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
@@ -753,6 +753,11 @@ public function Imagemap($baseUrl, $altText, $width, $height, $action) {
753753
}
754754

755755
public function Template($altText, $template) {
756+
foreach($template as $num => $var){
757+
if($var == null){
758+
unset($template[$num]);
759+
}
760+
}
756761
$MsgObject = array(
757762
"type" => "template",
758763
"altText" => $altText,

0 commit comments

Comments
 (0)