<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>horde/scripts/alarms.php don&#039;t work</title> 
  <pubDate>Sun, 05 Apr 2026 20:57:51 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5660</link> 
  <atom:link rel="self" type="application/rss+xml" title="horde/scripts/alarms.php don&#039;t work" href="https://bugs.horde.org/ticket/5660/rss" /> 
  <description>horde/scripts/alarms.php don&#039;t work</description> 
 
   
   
  <item> 
   <title>The horde/scripts/alarms.php script (from cron every 5 minut</title> 
   <description>The horde/scripts/alarms.php script (from cron every 5 minutes) don&#039;t work, due to (maybe) a bug in the notify function (lib/Horde/Alarm.php).



in this function you say:

        if (empty($user)) {

            $user = &#039;&#039;;

        }

so the user is &#039;&#039;, not null.



for this, the function _list in Alarm/sql.php append in the sql query a wrong condition

is_null($user) ? &#039;&#039; : &#039; AND (alarm_uid = ? OR alarm_uid = ?)&#039;);



so the query executed is

SELECT alarm .... rms WHERE ala...  ) AND (alarm_uid = &#039;&#039; OR alarm_uid = &#039;&#039;)



this cause the script don&#039;t work.

if I comment the 3 code line in the notify function (line 297)

/*        if (empty($user)) {

            $user = &#039;&#039;;

        }

*/

all works fine

</description> 
   <pubDate>Thu, 23 Aug 2007 08:45:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5660#t36235</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS.</title> 
   <description>Fixed in CVS.</description> 
   <pubDate>Thu, 20 Sep 2007 19:01:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5660#t37023</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 5760ec194e34</title> 
   <description>Changes have been made in Git (master):

commit 5760ec194e34960ff1ee97710a19acc966d8f7eb
Author: bertrand Gugger &lt;toggg@php.net&gt;
Date:   Wed Oct 19 23:43:53 2005 +0000

    Obviously, the # is to be kept in the anchor option, #5660, merci jeremy Lecour
    
    
    git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@198815 c90b9560-bf6c-de11-be94-00142212c4b1

 Text/Wiki/Parse/Default/Freelink.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

http://github.com/horde/horde/commit/5760ec194e34960ff1ee97710a19acc966d8f7eb</description> 
   <pubDate>Wed, 06 Sep 2017 08:17:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5660#t92181</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
