You are here

function flickr_response_has_error in Flickr 7

Same name and namespace in other branches
  1. 5 flickr.inc \flickr_response_has_error()
  2. 6 flickr.inc \flickr_response_has_error()

Check if the response from the Flickr api call was an error.

Parameters

string $response: Response to check.

Return value

array True if the response is an error message.

1 call to flickr_response_has_error()
flickr_request in ./flickr.inc
Submit a request to Flickr.

File

./flickr.inc, line 475
The Flickr API functions.

Code

function flickr_response_has_error($response) {
  return !(isset($response['stat']) && $response['stat'] == 'ok');
}