aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-02 20:49:57 +0000
committerMario <mario@mariovavti.com>2024-01-02 20:49:57 +0000
commit515d1d5e63a760e338b69d650caa4882dd494556 (patch)
tree16632c5e19fd82455e32b2932494c106d4fee3c7 /include/attach.php
parentbb6ed22594513d1d842ae82813a273b18d20a637 (diff)
downloadvolse-hubzilla-515d1d5e63a760e338b69d650caa4882dd494556.tar.gz
volse-hubzilla-515d1d5e63a760e338b69d650caa4882dd494556.tar.bz2
volse-hubzilla-515d1d5e63a760e338b69d650caa4882dd494556.zip
postgres does not like binaries to be string while mariadb/mysql does not seem to care - let's see
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php
index 9baebe2a0..8bbd73dde 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -2773,7 +2773,7 @@ function attach_move($channel_id, $resource_id, $new_folder_hash, $newname = '',
intval($channel_id)
);
- q("update photo set content = CASE imgscale WHEN 0 THEN '%s' ELSE CONCAT('%s', '-', imgscale) END where resource_id = '%s' and uid = %d and os_storage = 1",
+ q("update photo set content = CASE imgscale WHEN 0 THEN %s ELSE CONCAT(%s, '-', imgscale) END where resource_id = '%s' and uid = %d and os_storage = 1",
dbescbin($newstorepath),
dbescbin($newstorepath),
dbesc($resource_id),