getResult() returns 1
Posted: Mon Aug 30, 2021 7:30 am
The following code used to return the information from the punch, now it just returns a value of 1. Any ideas?
$result = $punch_obj->setPunch( $punch_data );
$filter = array( 'filter_data' => array('user_id' => $userID,'time_stamp' => time())); //filters request
$user_data = $punch_obj->getPunch($filter)->getResult();
$result = $punch_obj->setPunch( $punch_data );
$filter = array( 'filter_data' => array('user_id' => $userID,'time_stamp' => time())); //filters request
$user_data = $punch_obj->getPunch($filter)->getResult();