Summary | Fix for Recurrence::hasRecurType |
Queue | Kronolith |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | thomas.jarosch (at) intra2net (dot) com |
Created | 04/09/2007 (6688 days ago) |
Due | |
Updated | 04/18/2007 (6679 days ago) |
Assigned | 04/17/2007 (6680 days ago) |
Resolved | 04/18/2007 (6679 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
integers has the same effect as non-strict comparisons, I applied your
patch, thanks.
so a strict comparison works fine here.
the internal PHP type for the form input is "string". Please consider
this short code example:
<?php
define('HORDE_DATE_RECUR_NONE', 0);
$var = "0";
echo "hasRecurTypeOld: ".($var === HORDE_DATE_RECUR_NONE)."\n";
echo "hasRecurTypeNew: ".($var == HORDE_DATE_RECUR_NONE)."\n";
State ⇒ Feedback
a strict comparison works fine here.
State ⇒ Assigned
Assigned to Jan Schneider
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Fix for Recurrence::hasRecurType
Queue ⇒ Kronolith
New Attachment: kronolith-recurrence-fix-hasRecurType.patch
State ⇒ Unconfirmed
attached patch fixes a logic bug in hasRecurType(). Without the patch,
the recurs() function of an event always returns true.
Best regards,
Thomas Jarosch