Skip to content

Commit

Permalink
fixed created timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent a8ff948 commit fc0fcb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class webservice {
*/
public function add_ws_authorised_user($user) {
global $DB;
$serviceuser->timecreated = mktime();
$user->timecreated = mktime();
$DB->insert_record('external_services_users', $user);
}

Expand Down Expand Up @@ -231,7 +231,7 @@ public function delete_service($serviceid) {
$DB->delete_records('external_services_users', array('externalserviceid' => $serviceid));
$DB->delete_records('external_services_functions', array('externalserviceid' => $serviceid));
$DB->delete_records('external_tokens', array('externalserviceid' => $serviceid));
$DB->delete_records('external_services', array('id' => $serviceid));
$DB->delete_records('external_services', array('id' => $serviceid));
}

/**
Expand Down Expand Up @@ -946,8 +946,8 @@ public function '.$function->name.'('.$paramanddefaults.') {
* You can override this function in your child class to add extra code into the dynamically
* created service class. For example it is used in the amf server to cast types of parameters and to
* cast the return value to the types as specified in the return value description.
* @param unknown_type $function
* @param unknown_type $params
* @param stdClass $function
* @param array $params
* @return string body of the method for $function ie. everything within the {} of the method declaration.
*/
protected function service_class_method_body($function, $params){
Expand Down

0 comments on commit fc0fcb2

Please sign in to comment.