6.0.0-git
2021-01-18

[#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 2008-06-05 (4610 days ago)
Due
Updated 2008-06-05 (4610 days ago)
Assigned
Resolved 2008-06-05 (4610 days ago)
Milestone
Patch No

History
2008-06-05 06:54:13 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
2008-06-05 06:52:56 Michael Slusarz Version ⇒ HEAD
 
2008-06-05 06:52:41 Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in Horde 3.2.1.
2008-06-05 06:51:26 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
2008-06-05 00:48:34 keith (at) ajmani (dot) org Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ variable timestamp not defined in function exists() of lib/Horde/Cache/sql.php
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
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