fixed license-declined picture-delete bug
This commit is contained in:
@@ -32,4 +32,4 @@ date commit ID change
|
||||
- removed sqlsession.remote_addr and index remote_addr
|
||||
2013-02-16 06d832c3 new table data_licenses
|
||||
added user.data_license
|
||||
2013-02-17 added user.email_problems
|
||||
2013-02-17 b7b51eab added user.email_problems
|
||||
|
||||
@@ -874,8 +874,8 @@ class user
|
||||
$rs = sql("SELECT `pictures`.`url` " .
|
||||
"FROM `pictures`,`caches` " .
|
||||
"WHERE `caches`.`cache_id`=`pictures`.`object_id`" .
|
||||
"AND `caches`.`user_id`='&1'",
|
||||
$this->getUserId()
|
||||
" AND `pictures`.`object_type`='&1' AND `caches`.`user_id`='&2'",
|
||||
OBJECT_CACHE, $this->getUserId()
|
||||
);
|
||||
|
||||
elseif ($object_type == OBJECT_CACHELOG)
|
||||
@@ -883,8 +883,8 @@ class user
|
||||
$rs = sql("SELECT `pictures`.`url` " .
|
||||
"FROM `pictures`,`cache_logs` " .
|
||||
"WHERE `cache_logs`.`id`=`pictures`.`object_id`" .
|
||||
"AND `cache_logs`.`user_id`='&1'",
|
||||
$this->getUserId()
|
||||
" AND `pictures`.`object_type`='&1' AND `cache_logs`.`user_id`='&2'",
|
||||
OBJECT_CACHELOG, $this->getUserId()
|
||||
);
|
||||
|
||||
// set thumb-dimensions
|
||||
|
||||
Reference in New Issue
Block a user