MySQL 4.1 users could not edit column privileges.
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-06-08 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* server_privileges.php3: MySQL 4.1 users could not edit column privileges.
|
||||
|
||||
2003-06-07 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* libraries/common.lib.php3: Incremented required config.inc.php3 revision
|
||||
number.
|
||||
|
@@ -194,7 +194,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent =
|
||||
unset($sql_query);
|
||||
$row1 = PMA_mysql_fetch_array($res, MYSQL_ASSOC);
|
||||
mysql_free_result($res);
|
||||
$av_grants = explode ('\',\'' , substr($row1['Type'], 5, strlen($row1['Type']) - 7));
|
||||
$av_grants = explode ('\',\'' , substr($row1['Type'], strpos($row1['Type'], '(') + 2, strpos($row1['Type'], ')') - strpos($row1['Type'], '(') - 3));
|
||||
unset($row1);
|
||||
$users_grants = explode(',', $row['Table_priv']);
|
||||
while (list(, $current_grant) = each($av_grants)) {
|
||||
|
Reference in New Issue
Block a user