6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/5/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5660] horde/scripts/alarms.php don't work
*
Your Email Address
*
Spam protection
Enter the letters below:
. __ .___.. .\ / |/ ` _/ |\/| >< \__|\__../__.| |/ \
Comment
> The horde/scripts/alarms.php script (from cron every 5 minutes) don't > work, due to (maybe) a bug in the notify function > (lib/Horde/Alarm.php). > > > > in this function you say: > > if (empty($user)) { > > $user = ''; > > } > > so the user is '', not null. > > > > for this, the function _list in Alarm/sql.php append in the sql query > a wrong condition > > is_null($user) ? '' : ' AND (alarm_uid = ? OR alarm_uid = ?)'); > > > > so the query executed is > > SELECT alarm .... rms WHERE ala... ) AND (alarm_uid = '' OR alarm_uid = '') > > > > this cause the script don't work. > > if I comment the 3 code line in the notify function (line 297) > > /* if (empty($user)) { > > $user = ''; > > } > > */ > > all works fine > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers