Guest User

Untitled

a guest
Jul 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. $this->ipsclass->DB->simple_exec();
  3. while ($row = $this->ipsclass->DB->fetch_row())
  4. {
  5. $date = explode("-",$row[$this->funct->cfield['LEA']['SQL']],3);
  6. $timestamp = mktime (1,1,1,$date[1],$date[2],$date[0]);
  7. $today = getdate();
  8.  
  9. if (($today[0] - $timestamp) >= (60*60*24*30*6))//60 sec, 60min, 24 hours, 30 days, 6 months
  10. {
  11. $count_validations++;
  12.  
  13. if ($row[$this->funct->cfield['DIV']['SQL']] == $this->ipsclass->member[$this->funct->cfield['DIV']['SQL']])
  14. {
  15. $count_division++;
  16. }
  17. }
  18. }
  19.  
  20.  
  21.  
  22.  
  23. i know the errors on line 51
  24.  
  25. Error line is the following:
  26.  
  27. $timestamp = mktime (1,1,1,$date[1],$date[2],$date[0]);
  28.  
  29.  
  30.  
  31. Error from the ATS is the following:
  32.  
  33. Warning: mktime() expects parameter 6 to be long, string given in /home/tghqorg/subsites/twhq/ats/wrapper/modules/info_hud_pending_discharge.php on line 51
Add Comment
Please, Sign In to add comment