mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
put backticks on mysql reseved words which we unfortunately used for row names a long time ago
This commit is contained in:
parent
7bb9289921
commit
e8a0005d29
1 changed files with 1 additions and 1 deletions
|
@ -852,7 +852,7 @@ function photos_content(&$a) {
|
|||
|
||||
// fetch image, item containing image, then comments
|
||||
|
||||
$ph = q("SELECT aid,uid,xchan,resource_id,created,edited,title,desc,album,filename,type,height,width,size,scale,profile,photo_flags,allow_cid,allow_gid,deny_cid,deny_gid FROM `photo` WHERE `uid` = %d AND `resource_id` = '%s'
|
||||
$ph = q("SELECT aid,uid,xchan,resource_id,created,edited,title,`desc`,album,filename,`type`,height,width,`size`,scale,profile,photo_flags,allow_cid,allow_gid,deny_cid,deny_gid FROM `photo` WHERE `uid` = %d AND `resource_id` = '%s'
|
||||
and (photo_flags = %d or photo_flags = %d ) $sql_extra ORDER BY `scale` ASC ",
|
||||
intval($owner_uid),
|
||||
dbesc($datum),
|
||||
|
|
Loading…
Reference in a new issue