Changeset 41 for trunk/Modules/Meet/Meet.php
- Timestamp:
- Jun 18, 2019, 11:13:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.