]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-php440.patch
- restored (and i wondered where this fix go)
[packages/eventum.git] / eventum-php440.patch
1 --- ./misc/download_emails.php  2005-10-25 00:46:28.000000000 +0300
2 +++ /tmp/download_emails.php    2005-10-25 00:53:15.000000000 +0300
3 @@ -88,7 +88,7 @@
4  }
5  
6  // get the account ID since we need it for locking.
7 -$account_id = Email_Account::getAccountID($username, $hostname, $mailbox);
8 +$account_id = @Email_Account::getAccountID($username, $hostname, $mailbox);
9  if (($account_id == 0) && ($fix_lock != true)) {
10      echo "Error: Could not find a email account with the parameter provided. Please verify your email account settings and try again.\n";
11      exit;
12 @@ -127,7 +127,7 @@
13      exit;
14  }
15  
16 -$account = Email_Account::getDetails($account_id);
17 +$account = @Email_Account::getDetails($account_id);
18  $mbox = Support::connectEmailServer($account);
19  if ($mbox == false) {
20      echo "Error: Could not connect to the email server. Please verify your email account settings and try again.\n";
21 @@ -137,7 +137,7 @@
22      $total_emails = Support::getTotalEmails($mbox);
23      if ($total_emails > 0) {
24          for ($i = 1; $i <= $total_emails; $i++) {
25 -            Support::getEmailInfo($mbox, $account, $i);
26 +            @Support::getEmailInfo($mbox, $account, $i);
27          }
28      }
29      imap_expunge($mbox);
30 --- ./misc/process_mail_queue.php       2005-10-25 00:56:14.000000000 +0300
31 +++ /tmp/process_mail_queue.php 2005-10-25 01:20:51.000000000 +0300
32 @@ -63,11 +63,11 @@
33  
34  // handle only pending emails
35  $limit = 50;
36 -Mail_Queue::send('pending', $limit);
37 +@Mail_Queue::send('pending', $limit);
38  
39  // handle emails that we tried to send before, but an error happened...
40  $limit = 50;
41 -Mail_Queue::send('error', $limit);
42 +@Mail_Queue::send('error', $limit);
43  
44  Mail_Queue::removeProcessFile();
45 -?>
46 \ No newline at end of file
47 +?>
48 --- ./misc/check_reminders.php  2005-10-25 00:56:14.000000000 +0300
49 +++ /tmp/check_reminders.php    2005-10-25 01:23:56.000000000 +0300
50 @@ -64,7 +64,7 @@
51  **/
52  $triggered_issues = array();
53  
54 -$reminders = Reminder::getList();
55 +$reminders = @Reminder::getList();
56  for ($i = 0; $i < count($reminders); $i++) {
57      // if this is the weekend and this reminder isn't supposed to run on weekends skip
58      if (($reminders[$i]['rem_skip_weekend'] == 1) && (in_array(date("w"), array(0,6)))) {
59 @@ -80,14 +80,14 @@
60          if (Reminder::isDebug()) {
61              echo "Processing Reminder Action '" . $reminders[$i]['actions'][$y]['rma_title'] . "'\n";
62          }
63 -        $conditions = Reminder_Condition::getList($reminders[$i]['actions'][$y]['rma_id']);
64 +        $conditions = @Reminder_Condition::getList($reminders[$i]['actions'][$y]['rma_id']);
65          if (count($conditions) == 0) {
66              if (Reminder::isDebug()) {
67                  echo "  - Skipping Reminder because there were no reminder conditions found\n";
68              }
69              continue;
70          }
71 -        $issues = Reminder::getTriggeredIssues($reminders[$i], $conditions);
72 +        $issues = @Reminder::getTriggeredIssues($reminders[$i], $conditions);
73          // avoid repeating reminder actions, so get the list of issues 
74          // that were last triggered with this reminder action ID
75          $repeat_issues = Reminder_Action::getRepeatActions($issues, $reminders[$i]['actions'][$y]['rma_id']);
This page took 0.028709 seconds and 3 git commands to generate.