6.0.0-beta1
11/5/25

[#6839] variable timestamp not defined in function exists() of lib/Horde/Cache/sql.php
Summary variable timestamp not defined in function exists() of lib/Horde/Cache/sql.php
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester keith (at) ajmani (dot) org
Created 06/05/2008 (6362 days ago)
Due
Updated 06/05/2008 (6362 days ago)
Assigned
Resolved 06/05/2008 (6362 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/05/2008 06:54:13 AM CVS Commit Comment #4 Reply to this comment
Changes have been made in CVS for this ticket:

   http://cvs.horde.org/diff.php/horde/docs/CHANGES?r1=1.1096&r2=1.1097&ty=u
06/05/2008 06:52:56 AM Michael Slusarz Version ⇒ HEAD
 
06/05/2008 06:52:41 AM Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in Horde 3.2.1.
06/05/2008 06:51:26 AM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

   
http://cvs.horde.org/diff.php/framework/Cache/Cache/sql.php?r1=1.19&r2=1.20&ty=u
06/05/2008 12:48:34 AM keith (at) ajmani (dot) org Comment #1
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ variable timestamp not defined in function exists() of lib/Horde/Cache/sql.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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.


Saved Queries