Ticket #1484444 (closed Bugs: duplicate)
Stupid PHP Warnings because of headers()
| Reported by: | SNo0py | Owned by: | |
|---|---|---|---|
| Priority: | 2 | Milestone: | |
| Component: | Client Scripts | Version: | 0.1-beta |
| Severity: | minor | Keywords: | |
| Cc: |
Description
A lot of times I find PHP Warning: Cannot modify header information - headers already sent in... in the logs. This can easily be avoided by adding
if(!headers_sent())
before the header() call (i.e. in program/include/rcube_shared.inc on line 154!).
This is just a workaround, ideally the code is written in a way so it does not send headers just in the middle of the code. But at least get rid of the warnings!
Change History
Note: See
TracTickets for help on using
tickets.
