fixed license-declined picture-delete bug

This commit is contained in:
following
2013-02-19 17:05:05 +01:00
parent ab2c7fe839
commit b7aff79730
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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