Skip to content

Commit 11f01ed

Browse files
committed
Returns nothing for techSpecs if set to false
1 parent b3ff77b commit 11f01ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/imdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function film(string $filmId, array $options = []): array
8080
$response->add("poster", $htmlPieces->get($page, "poster"));
8181
$response->add("trailer", $htmlPieces->get($page, "trailer"));
8282
$response->add("cast", $htmlPieces->get($page, "cast"));
83-
$response->add("technical_specs", $htmlPieces->get($page, "technical_specs"));
83+
$response->add("technical_specs", $options["techSpecs"] ? $htmlPieces->get($page, "technical_specs") : "");
8484

8585
// Return the response $store
8686
return $response->return();

0 commit comments

Comments
 (0)