diff options
author | Florian Steinel <fsteinel@users.noreply.github.com> | 2016-10-27 02:41:32 +0200 |
---|---|---|
committer | Florian Steinel <fsteinel@users.noreply.github.com> | 2016-10-27 02:41:32 +0200 |
commit | c1c96e01fab131dd48cd68cdd9b63639e269d9c8 (patch) | |
tree | 3df5a97bc8829cdf811498e6f79c5653a7f7be73 /Zotlabs/Module/Regdir.php | |
parent | c3af36d33b9a08aacecd572ad17fe33362617d23 (diff) | |
download | volse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.tar.gz volse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.tar.bz2 volse-hubzilla-c1c96e01fab131dd48cd68cdd9b63639e269d9c8.zip |
sql: limit 1 for UPDATE and DELETE is not supported by the SQL standard and postgresql
(see: https://www.postgresql.org/message-id/flat/1291109101.26137.35.camel%40pcd12478 )
Diffstat (limited to 'Zotlabs/Module/Regdir.php')
-rw-r--r-- | Zotlabs/Module/Regdir.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Regdir.php b/Zotlabs/Module/Regdir.php index 208a2b384..f4d16c562 100644 --- a/Zotlabs/Module/Regdir.php +++ b/Zotlabs/Module/Regdir.php @@ -70,7 +70,7 @@ class Regdir extends \Zotlabs\Web\Controller { if(! $result['success']) $valid = 0; - q("update site set site_valid = %d where site_url = '%s' limit 1", + q("update site set site_valid = %d where site_url = '%s'", intval($valid), strtolower($url) ); |