Skip to content

Commit fe5a4d1

Browse files
committed
Fix typo in search_url variable name
- searc_url => search_url
1 parent d321834 commit fe5a4d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Imdb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ public function search(string $search, array $options = []): array
149149

150150
// Encode search string as a standard URL string
151151
// -> ' ' => '%20'
152-
$searc_url = urlencode(urldecode($search));
152+
$search_url = urlencode(urldecode($search));
153153

154154
// Load imdb search page and parse the dom
155-
$page = $dom->fetch("https://www.imdb.com/find?q=$searc_url&s=".$options["category"], $options);
155+
$page = $dom->fetch("https://www.imdb.com/find?q=$search_url&s=".$options["category"], $options);
156156

157157
// Add all search data to response $store
158158
$response->add("titles", $htmlPieces->get($page, "titles"));

0 commit comments

Comments
 (0)