From imp Sat Apr 03 13:56:17 2004 From: "W. Tasin" Date: Sat, 03 Apr 2004 13:56:17 +0000 To: imp Subject: [horde] CVS nag patch - alert task notification Message-Id: <406EC281.3000109 () fhm ! edu> X-MARC-Message: https://marc.info/?l=imp&m=108100064811488 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------060001090608080309060707" This is a multi-part message in MIME format. --------------060001090608080309060707 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, here's a little patch which corrects listAlarms for datatree backend (made the if-clause like the sql-command in sql backend). Ciao Walter --------------060001090608080309060707 Content-Type: text/plain; name="nag_datatree.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nag_datatree.diff" --- nag/lib/Driver/datatree.php Sun Mar 14 03:43:27 2004 +++ nag/lib/Driver/datatree.php Sat Apr 3 10:28:54 2004 @@ -272,8 +272,8 @@ // Check the alarm. if ($obj->get('alarm') > 0 - && ($obj->get('due') - $obj->get('alarm') * 60) < $date - && $obj->get('due') < time() ){ + && ($obj->get('due') - $obj->get('alarm') * 60) <= $date + && $obj->get('due') >= time() ){ $tasks[$task_id] = array( 'task_id' => $task_id, 'tasklist_id' => $this->_tasklist, --------------060001090608080309060707 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Horde mailing list - Join the hunt: http://horde.org/bounties/#horde Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: horde-unsubscribe@lists.horde.org --------------060001090608080309060707--