I get this warning in my error logs and wanted to know how to correct this issues in my code.
Warning: PHP Notice: Undefined property: stdClass::$records in script
If think this will work:
if(sizeof($response->records)>0) $role_arr = getRole($response->records);
newly defined proprties included too.