6.0.0-beta1
7/5/25

[#9399] hook example is wrong
Summary hook example is wrong
Queue Ansel
Queue Version 1.1.2
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester michael (at) bigmichi1 (dot) de
Created 11/20/2010 (5341 days ago)
Due
Updated 11/21/2010 (5340 days ago)
Assigned
Resolved 11/21/2010 (5340 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/21/2010 04:41:23 AM Michael Rubinsky Comment #3
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
Committed, thanks!
11/21/2010 04:39:09 AM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Reversed logic
Bug: 9399
Submitted by: michael (at) bigmichi1 (dot) de
http://cvs.horde.org/diff.php/ansel/config/hooks.php.dist?rt=horde&r1=1.2&r2=1.2.2.1&ty=u
11/20/2010 08:20:15 AM michael (at) bigmichi1 (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ hook example is wrong
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
the return statement for the age hook in the hook.php file is wrong.
instead of the line: return is_a($result, 'PEAR_Error') ? (int)$result : 0;
it must be: return !is_a($result, 'PEAR_Error') ? (int)$result : 0;

Saved Queries