diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-18 13:46:03 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-18 13:46:03 -0800 |
commit | a99d28dea939abc7eb9fbfcfcc966c40215a94b6 (patch) | |
tree | 652c0949e5f13fe779e835717d75dbaf90e135f3 /include | |
parent | 1b9722c65ac2169cadcf78376aaaf9d82721c9cd (diff) | |
download | volse-hubzilla-a99d28dea939abc7eb9fbfcfcc966c40215a94b6.tar.gz volse-hubzilla-a99d28dea939abc7eb9fbfcfcc966c40215a94b6.tar.bz2 volse-hubzilla-a99d28dea939abc7eb9fbfcfcc966c40215a94b6.zip |
sql delete with limit
Diffstat (limited to 'include')
-rw-r--r-- | include/deliver.php | 2 | ||||
-rw-r--r-- | include/zot.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/deliver.php b/include/deliver.php index 60d935d02..7ff0fa125 100644 --- a/include/deliver.php +++ b/include/deliver.php @@ -66,7 +66,7 @@ function deliver_run($argv, $argc) { } } - q("delete from dreport where dreport_queue = '%s' limit 1", + q("delete from dreport where dreport_queue = '%s'", dbesc($argv[$x]) ); } diff --git a/include/zot.php b/include/zot.php index ce3bef783..922637bc1 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1000,7 +1000,7 @@ function zot_process_response($hub, $arr, $outq) { // we have a more descriptive delivery report, so discard the per hub 'queued' report. - q("delete from dreport where dreport_queue = '%s' limit 1", + q("delete from dreport where dreport_queue = '%s' ", dbesc($outq['outq_hash']) ); |