Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-08-09
2001-08-09 09:21:43 by Per Hedbor <ph@opera.com>
90274da12fb3826cb18bc2d8cd034eb03becac62 (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed a bug in the new unified imagecachetable code
Rev: server/base_server/roxen.pike:1.690
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
689
2001/08/09
07
:
57
:
14
per Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
690
2001/08/09
09
:
21
:
43
per Exp $";
// The argument cache. Used by the image cache. ArgCache argcache;
2621:
{ array q; string uid;
-
+
if( zero_type(uid = uid_cache[id]) ) { q = QUERY( "SELECT uid FROM "+name+" WHERE id=%s",id);
2632:
uid_cache[id] = uid; }
-
if( uid )
+
if( uid
&& strlen(uid
)
)
{ User u; if( !(u=rid->conf->authenticate(rid)) || (u->name() != uid ) )
2643:
if( rst_cache[ id ] ) return rst_cache[ id ] + ([]);
-
+
q = QUERY( "SELECT data FROM "+name+" WHERE id=%s",id); if( sizeof(q) ) {