Permalink
Browse files

Used a proper function to update configuration setting

  • Loading branch information...
1 parent 5560ed9 commit 9c03df05af2bb19fbd5223153c618302acbc67c4 patrickslee committed Oct 4, 2005
Showing with 1 addition and 9 deletions.
  1. +1 −9 enrol/enrol.class.php
View
10 enrol/enrol.class.php
@@ -393,15 +393,7 @@ function cron() {
}
}
}
- if ($lastexpirynotify = get_record('config', 'name', 'lastexpirynotify')) {
- $lastexpirynotify->value = date('Ymd');
- update_record('config', $lastexpirynotify);
- } else {
- $lastexpirynotify = new stdClass();
- $lastexpirynotify->name = 'lastexpirynotify';
- $lastexpirynotify->value = date('Ymd');
- insert_record('config', $lastexpirynotify);
- }
+ set_config('lastexpirynotify', date('Ymd'));
}
}
}

0 comments on commit 9c03df0

Please sign in to comment.