Changeset 873 for trunk/Modules/Notify/Notify.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Notify/Notify.php
r868 r873 46 46 function RegisterCheck($Name, $Callback) 47 47 { 48 if (array_key_exists($Name, $this->Checks))48 if (array_key_exists($Name, $this->Checks)) 49 49 throw new Exception('Check function "'.$Name.'" already registered.'); 50 50 $this->Checks[$Name] = array('Callback' => $Callback); … … 53 53 function UnregisterCheck($Name) 54 54 { 55 if (!array_key_exists($Name, $this->Checks))55 if (!array_key_exists($Name, $this->Checks)) 56 56 throw new Exception('Check function "'.$Name.'" not registered.'); 57 57 unset($this->Checks[$Name]); … … 88 88 'LEFT JOIN `User` ON `User`.`Id` = `NotifyUser`.`User` '. 89 89 'LEFT JOIN `Contact` ON `Contact`.`Id` = `NotifyUser`.`Contact`'); 90 while ($User = $DbResult->fetch_assoc())90 while ($User = $DbResult->fetch_assoc()) 91 91 { 92 92 $Output .= 'User '.$User['Name'].'<br/>'; … … 94 94 $this->Database->update('NotifyUser', '`Id`='.$User['Id'], array('LastTime' => TimeToMysqlDateTime($Time))); 95 95 96 if (($User['Category'] == CONTACT_CATEGORY_EMAIL) and ($Content != ''))96 if (($User['Category'] == CONTACT_CATEGORY_EMAIL) and ($Content != '')) 97 97 { 98 98 $Mail = new Mail(); … … 120 120 } 121 121 122 return ($Output);122 return ($Output); 123 123 } 124 124 … … 178 178 ' ORDER BY `Time` DESC LIMIT '.$Count; 179 179 $DbResult = $this->System->Database->query($sql); 180 while ($Line = $DbResult->fetch_assoc())180 while ($Line = $DbResult->fetch_assoc()) 181 181 { 182 182 $Items[] = array … … 195 195 $RSS->WebmasterEmail = $this->System->Config['Web']['AdminEmail']; 196 196 $RSS->Items = $Items; 197 return ($RSS->Generate());197 return ($RSS->Generate()); 198 198 } 199 199 }
Note:
See TracChangeset
for help on using the changeset viewer.