MySQL 4.1 users could not edit column privileges.

This commit is contained in:
Alexander M. Turek
2003-06-08 16:26:46 +00:00
parent 0df4ea3319
commit 8c525a6732
2 changed files with 4 additions and 1 deletions

View File

@@ -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)) {