[Tickets #12540] ErrorHandler: Only call $registry->isAdmin() if registry is available

noreply at bugs.horde.org noreply at bugs.horde.org
Wed Aug 7 12:48:15 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12540
------------------------------------------------------------------------------
  Ticket             | 12540
  Created By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
  Summary            | ErrorHandler: Only call $registry->isAdmin() if
                     | registry is available
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2013-08-07 12:48) wrote:

Hi,

attached patch fixes the ErrorHandler if the registry is not yet available.

Without the patch, the ErrorHandler crashed like this:
[Wed Aug 07 14:38:42 2013] [error] [client 127.0.0.1] PHP Fatal error:  
  Call to a member function isAdmin() on a non-object in  
/datastore/share/pear/Horde/ErrorHandler.php on line 81

Cheers,
Thomas




Thomas Jarosch <thomas.jarosch at intra2net.com> (2013-08-07 12:48)  
uploaded:  
0001-Only-call-registry-isAdmin-if-registry-is-already-av.patch

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=0001-Only-call-registry-isAdmin-if-registry-is-already-av.patch&ticket=12540&fn=%2F0001-Only-call-registry-isAdmin-if-registry-is-already-av.patch





More information about the bugs mailing list