6.0.0-beta1
7/18/25

[#1627] Locking all options for module results in Division by zero in UI.php
Summary Locking all options for module results in Division by zero in UI.php
Queue Horde Base
Queue Version 3.0.3
Type Bug
State Resolved
Priority 1. Low
Owners
Requester kevin_myer (at) iu13 (dot) org
Created 03/26/2005 (7419 days ago)
Due
Updated 03/26/2005 (7419 days ago)
Assigned
Resolved 03/26/2005 (7419 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/26/2005 04:11:09 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Fixed for 3.0.4.



Hiding the options button as you suggest would impose way too much 
overhead on every page load.
03/26/2005 04:16:31 AM kevin_myer (at) iu13 (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Locking all options for module results in Division by zero in UI.php
Queue ⇒ Horde Base
Reply to this comment
If you lock down all the available preferences for a module, in 
prefs.php and you choose the Options link for that preference, the 
following message is displayed:



Warning: Division by zero in /horderoot/lib/Horde/Prefs/UI.php on line 225



An easy module to use to test this is Ingo, since it has one user 
changeable preference.



I'm not sure how difficult it would be to implement but I would see 
benefit to an end-user if the Options button in the menu and the 
options listing in  "Edit Options for" drop-down menu were not 
generated at all, if no user-configurable preferences were present for 
a module.

Saved Queries