diff options
author | nikrou <nikrou@piwigo.org> | 2009-11-20 14:17:04 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2009-11-20 14:17:04 +0000 |
commit | 924dd262ec3778277cf1efedee92fa5dd4fb2d32 (patch) | |
tree | 05176413aa5b4762dd72477099644c732389f971 /admin/group_list.php | |
parent | c020cd0d7cb7710a6ffe04fc8b6d6ccfecb2c466 (diff) |
Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine
Fix small php code synxtax : hash must be accessed with [ ] and not { }.
git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/group_list.php')
-rw-r--r-- | admin/group_list.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/group_list.php b/admin/group_list.php index 97ee5a8f3..eff20031d 100644 --- a/admin/group_list.php +++ b/admin/group_list.php @@ -60,7 +60,7 @@ SELECT name FROM '.GROUPS_TABLE.' WHERE id = '.$_GET['delete'].' ;'; - list($groupname) = mysql_fetch_row(pwg_query($query)); + list($groupname) = pwg_db_fetch_row(pwg_query($query)); // destruction of the group $query = ' @@ -94,7 +94,7 @@ SELECT COUNT(*) FROM '.GROUPS_TABLE.' WHERE name = \''.$_POST['groupname'].'\' ;'; - list($count) = mysql_fetch_row(pwg_query($query)); + list($count) = pwg_db_fetch_row(pwg_query($query)); if ($count != 0) { array_push($page['errors'], l10n('group_add_error2')); @@ -107,7 +107,7 @@ SELECT COUNT(*) INSERT INTO '.GROUPS_TABLE.' (name) VALUES - (\''.mysql_real_escape_string($_POST['groupname']).'\') + (\''.pwg_db_real_escape_string($_POST['groupname']).'\') ;'; pwg_query($query); @@ -129,7 +129,7 @@ SELECT name, is_default FROM '.GROUPS_TABLE.' WHERE id = '.$_GET['toggle_is_default'].' ;'; - list($groupname, $is_default) = mysql_fetch_row(pwg_query($query)); + list($groupname, $is_default) = pwg_db_fetch_row(pwg_query($query)); // update of the group $query = ' @@ -175,14 +175,14 @@ $del_url = $admin_url.'group_list&delete='; $members_url = $admin_url.'user_list&group='; $toggle_is_default_url = $admin_url.'group_list&toggle_is_default='; -while ($row = mysql_fetch_assoc($result)) +while ($row = pwg_db_fetch_assoc($result)) { $query = ' SELECT COUNT(*) FROM '.USER_GROUP_TABLE.' WHERE group_id = '.$row['id'].' ;'; - list($counter) = mysql_fetch_row(pwg_query($query)); + list($counter) = pwg_db_fetch_row(pwg_query($query)); $template->append( 'groups', |