Changeset 41 for trunk/Modules/Meet
- Timestamp:
- Jun 18, 2019, 11:13:28 PM (6 years ago)
- Location:
- trunk/Modules/Meet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Amblar.php
r37 r41 73 73 $MeetItem->Source = $this->Id; 74 74 $Output .= $this->ImportItem($MeetItem); 75 $this->AddedCount += $MeetItem->AddIfNotExist( );75 $this->AddedCount += $MeetItem->AddIfNotExist(24 * 60 * 60); 76 76 } 77 77 return $Output; -
trunk/Modules/Meet/Meet.php
r37 r41 348 348 var $Level = ''; 349 349 350 function AddIfNotExist( )350 function AddIfNotExist($TimeInterval = 0) 351 351 { 352 352 $DbResult = $this->Database->select('MeetItem', '*', 353 353 '(`Message` = "'.$this->Database->real_escape_string($this->Message).'") AND '. 354 354 '(`Email` = "'.$this->Database->real_escape_string($this->Email).'") AND '. 355 '(`Time` = "'.$this->Database->real_escape_string(TimeToMysqlDateTime($this->Time)).'")'); 355 '(`Time` >= "'.$this->Database->real_escape_string(TimeToMysqlDateTime($this->Time - $TimeInterval)).'") AND '. 356 '(`Time` <= "'.$this->Database->real_escape_string(TimeToMysqlDateTime($this->Time + $TimeInterval)).'")'); 356 357 if ($DbResult->num_rows == 0) 357 358 {
Note:
See TracChangeset
for help on using the changeset viewer.