6.0.0-git
2021-01-18

[#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 2005-03-26 (5777 days ago)
Due
Updated 2005-03-26 (5777 days ago)
Assigned
Resolved 2005-03-26 (5777 days ago)
Milestone
Patch No

History
2005-03-26 16:11:09 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.
2005-03-26 04:16:31 kevin_myer (at) iu13 (dot) org Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
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