diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-05-10 18:04:19 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-05-10 18:04:19 +0200 |
commit | 3fb27bdc550a0c3f84eff16a49cf78179a0b681c (patch) | |
tree | 05ed8e83b0a14f813e3e95239ec564cfe33e9410 /include | |
parent | 380775540d98d89bbeeb0873563f299ef769ef25 (diff) | |
download | volse-hubzilla-3fb27bdc550a0c3f84eff16a49cf78179a0b681c.tar.gz volse-hubzilla-3fb27bdc550a0c3f84eff16a49cf78179a0b681c.tar.bz2 volse-hubzilla-3fb27bdc550a0c3f84eff16a49cf78179a0b681c.zip |
fix query for postgres
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php index fc146d008..b7fb17f38 100644 --- a/include/attach.php +++ b/include/attach.php @@ -220,7 +220,7 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $ $sql_extra .= protect_sprintf(" and filetype like '%" . dbesc($filetype) . "%' "); if($entries) - $limit = " limit " . intval($start) . ", " . intval($entries) . " "; + $limit = " LIMIT " . intval($entries) . " OFFSET " . intval($start) . " "; if(! $since) $since = NULL_DATE; |