Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( $nextUpdate < current_time('timestamp') ){
- // check if first time update
- if ( ($options['lastUpdate'] == 0 ) ){
- $today = getdate(current_time('timestamp'));
- $first_day = getdate(mktime(0,0,0,$today['mon'],1,$today['year']));
- $nextUpdate = $first_day[0];
- }
- $new_settings = array(
- 'updatestatus' => $updatestatus,
- 'lastUpdate' => $nextUpdate,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement