@@ 139-143 (lines=5) @@ | ||
136 | $data = json_decode($api, true); |
|
137 | ||
138 | // In DEBUG Mode print 1 Response |
|
139 | if ($this->params['DEBUG']=='API1' || $this->params['DEBUG']=='ALL') { |
|
140 | echo '<pre><b>Search API-Call (1) Response</b> '; |
|
141 | echo var_dump($data); |
|
142 | echo '</pre>'; |
|
143 | } |
|
144 | ||
145 | // If there is a search Result |
|
146 | if (isset($data['query']['search'][0]['title'])) { |
|
@@ 199-203 (lines=5) @@ | ||
196 | $data = json_decode($api, true); |
|
197 | ||
198 | // In DEBUG Mode print 2 Response |
|
199 | if ($this->params['DEBUG']=='API2' || $this->params['DEBUG']=='ALL') { |
|
200 | echo '<pre><b>Main API-Call (2) Response</b> '; |
|
201 | echo var_dump($data); |
|
202 | echo '</pre>'; |
|
203 | } |
|
204 | ||
205 | // If there is an Image in the Search Result |
|
206 | if (isset($data['originalimage']['source'])) { |