mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #1334 change syntax to be compatible with PHP 5.3
This commit is contained in:
@@ -334,7 +334,7 @@ function ws_groups_duplicate($params, &$service) {
|
|||||||
$query = '
|
$query = '
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM `'.GROUPS_TABLE.'`
|
FROM `'.GROUPS_TABLE.'`
|
||||||
WHERE name = \''.$params['copy_name'].'\'
|
WHERE name = \''.pwg_db_real_escape_string($params['copy_name']).'\'
|
||||||
;';
|
;';
|
||||||
list($count) = pwg_db_fetch_row(pwg_query($query));
|
list($count) = pwg_db_fetch_row(pwg_query($query));
|
||||||
if ($count != 0)
|
if ($count != 0)
|
||||||
@@ -359,7 +359,7 @@ SELECT is_default
|
|||||||
WHERE id = '.$params['group_id'].'
|
WHERE id = '.$params['group_id'].'
|
||||||
;';
|
;';
|
||||||
|
|
||||||
$is_default = pwg_db_fetch_row(pwg_query($query))[0];
|
list($is_default) = pwg_db_fetch_row(pwg_query($query));
|
||||||
|
|
||||||
// creating the group
|
// creating the group
|
||||||
single_insert(
|
single_insert(
|
||||||
|
|||||||
Reference in New Issue
Block a user