mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-05 08:22:17 +00:00
Fix NC sync API SQL query
This commit is contained in:
1 parent
89ab76df7a
commit
c8a849de98
1 file changed
+5
-1
@@ -53,7 +53,11 @@ function bratonien_tools_ws_nc_sync($params, &$service)
|
||||
return new PwgError(400, 'Invalid site_id.');
|
||||
}
|
||||
|
||||
$query = '\nSELECT galleries_url\n FROM '.SITES_TABLE.'\n WHERE id = '.$site_id.'\n LIMIT 1';
|
||||
$query = '
|
||||
SELECT galleries_url
|
||||
FROM '.SITES_TABLE.'
|
||||
WHERE id = '.$site_id.'
|
||||
LIMIT 1';
|
||||
$result = pwg_query($query);
|
||||
if (!pwg_db_num_rows($result))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user