[Tickets #6839] Re: variable timestamp not defined in function exists() of lib/Horde/Cache/sql.php

bugs at horde.org bugs at horde.org
Thu Jun 5 00:48:55 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/6839
-----------------------------------------------------------------------
 Ticket             | 6839
 Updated By         | keith at ajmani.org
 Summary            | variable timestamp not defined in function exists() of
                    | lib/Horde/Cache/sql.php
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Milestone          |
 Patch              |
 Owners             |
-----------------------------------------------------------------------


keith at ajmani.org (2008-06-04 20:48) wrote:

Hello:

The function exists(), line 243 of lib/Horde/Cache/sql.php references a
variable 'timestamp' on lines 275 & 277, but the variable is never created
in the function.

Solution: add line 257 as:

$timestamp = time();

Errors (PHP Notice) will appear in the web UI when logging into Mail (or
any Horde module that uses sql caching), due to this error. Also, logging
records will lack timestamps, a key attribute.





More information about the bugs mailing list