bug #1353437, undefined index in server_privileges.php
This commit is contained in:
@@ -9,6 +9,7 @@ $Source$
|
|||||||
* libraries/session.inc.php, Documentation.html: bug #1352479, warn
|
* libraries/session.inc.php, Documentation.html: bug #1352479, warn
|
||||||
if PHP does not support session
|
if PHP does not support session
|
||||||
* server_privileges.php: bug #1353435, selecting users to drop is broken
|
* server_privileges.php: bug #1353435, selecting users to drop is broken
|
||||||
|
and bug #1353437, undefined index while editing a user
|
||||||
|
|
||||||
2005-11-10 Michal Čihař <michal@cihar.com>
|
2005-11-10 Michal Čihař <michal@cihar.com>
|
||||||
* scripts/create-release.sh: = is correct for comparsion in shell.
|
* scripts/create-release.sh: = is correct for comparsion in shell.
|
||||||
|
@@ -1687,7 +1687,7 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) {
|
|||||||
. ' </tt></td>' . "\n"
|
. ' </tt></td>' . "\n"
|
||||||
. ' <td>' . (((empty($dbname) && $row['Grant_priv'] == 'Y') || (!empty($dbname) && in_array('Grant', explode(',', $row['Table_priv'])))) ? $GLOBALS['strYes'] : $GLOBALS['strNo']) . '</td>' . "\n"
|
. ' <td>' . (((empty($dbname) && $row['Grant_priv'] == 'Y') || (!empty($dbname) && in_array('Grant', explode(',', $row['Table_priv'])))) ? $GLOBALS['strYes'] : $GLOBALS['strNo']) . '</td>' . "\n"
|
||||||
. ' <td>';
|
. ' <td>';
|
||||||
if ( $row['Table_priv'] || $row['Column_priv'] ) {
|
if ((isset($row['Table_priv']) && $row['Table_priv']) || (isset($row['Column_priv']) && $row['Column_priv'])) {
|
||||||
echo $GLOBALS['strYes'];
|
echo $GLOBALS['strYes'];
|
||||||
} else {
|
} else {
|
||||||
echo $GLOBALS['strNo'];
|
echo $GLOBALS['strNo'];
|
||||||
@@ -1700,7 +1700,7 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) {
|
|||||||
urlencode( empty($dbname) ? '' : $row['Table_name'] ) );
|
urlencode( empty($dbname) ? '' : $row['Table_name'] ) );
|
||||||
echo '</td>' . "\n"
|
echo '</td>' . "\n"
|
||||||
. ' <td>';
|
. ' <td>';
|
||||||
if ( $row['can_delete'] || $row['Table_name'] ) {
|
if ( (isset($row['can_delete']) && $row['can_delete']) || (isset($row['Table_name']) && $row['Table_name'])) {
|
||||||
printf( $link_revoke, urlencode( $username ),
|
printf( $link_revoke, urlencode( $username ),
|
||||||
urlencode( $hostname ),
|
urlencode( $hostname ),
|
||||||
urlencode( empty( $dbname ) ? $row['Db'] : $dbname ),
|
urlencode( empty( $dbname ) ? $row['Db'] : $dbname ),
|
||||||
|
Reference in New Issue
Block a user