settings->get_general(userID); //Check for error if(!$user_settings->isValid()) Rest_fatal_error(500, "Could not get user settings !"); print_r($user_settings); } }