mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-30 05:09:57 +03:00
fixes #1334 change syntax to be compatible with PHP 5.3
This commit is contained in:
parent
26cc5d130f
commit
649e73c89b
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ function ws_groups_duplicate($params, &$service) {
|
|||
$query = '
|
||||
SELECT COUNT(*)
|
||||
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));
|
||||
if ($count != 0)
|
||||
|
@ -359,7 +359,7 @@ SELECT is_default
|
|||
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
|
||||
single_insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue