vpx_check_result_for_error($result)vpx_shared/vpx_shared_plain_php.inc, line 35
<?php
function vpx_check_result_for_error($result) {
if (is_object($result)) { // rest_response object
if (isset($result->response['header']['request_result_id'])) {
return ($result->response['header']['request_result_id'] != ERRORCODE_OKAY);
}
elseif (isset($result->header->request_result)) {
return ($result->header->request_result != ERRORMESSAGE_OKAY);
}
}
if (is_array($result)) {
if (isset($result['id'])) {
return ($result['id'] != ERRORCODE_OKAY);
}
}
if ($result === TRUE) {
return FALSE;
}
if ($result === FALSE) {
return TRUE;
}
}
?> | This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License | ![]() |
The current recommended MediaMosa version is 3.2.2. Release notes are available in MediaMosa Trac.
