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 )
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user