6.0.0-beta1
8/7/25

[#5605] Turba no_shares fix
Summary Turba no_shares fix
Queue Turba
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester gb (at) atomas (dot) com
Created 08/06/2007 (6576 days ago)
Due
Updated 08/06/2007 (6576 days ago)
Assigned
Resolved 08/06/2007 (6576 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/06/2007 08:02:51 PM gb (at) atomas (dot) com Comment #3 Reply to this comment
Thank you !
08/06/2007 01:50:59 PM Michael Rubinsky Comment #2
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
resolved in a slightly different way - Turba::listShares should never 
be called to begin with if no share enabled source.



Thanks for the report!
08/06/2007 06:59:49 AM gb (at) atomas (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Turba no_shares fix
Queue ⇒ Turba
New Attachment: turba_no_shares_fix.patch Download
State ⇒ Unconfirmed
Reply to this comment
If no 'use_shares' is defined in sources.php, Turba throws :

PHP Fatal error:  Call to a member function listShares() on a 
non-object in /home/gbouthenot/web/horde-head/turba/lib/Turba.php on 
line 503



To replicate the error: delete horde_prefs for a given user, remove 
the use_shares line in turba/config/sources.php and try to log



The fix included checks the existence of turba_shares before calling 
turba_shares->listShares(...)


Saved Queries