Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if ( $nextUpdate < current_time('timestamp') ){
  2.  
  3. // check if first time update
  4. if ( ($options['lastUpdate'] == 0 ) ){
  5. $today = getdate(current_time('timestamp'));
  6. $first_day = getdate(mktime(0,0,0,$today['mon'],1,$today['year']));
  7. $nextUpdate = $first_day[0];
  8. }
  9.  
  10. $new_settings = array(
  11. 'updatestatus' => $updatestatus,
  12. 'lastUpdate' => $nextUpdate,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement