You are here

function flickr_response_has_error in Flickr 6

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

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

Parameters

$response: response to check

Return value

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 405

Code

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