Remonte mieux l'erreur si l'utilisateur SQL existe pas
This commit is contained in:
parent
6b8965bc45
commit
4519fccd25
|
@ -41,7 +41,7 @@ getFields($fields);
|
|||
<?php
|
||||
$r=$mysql->get_user_dblist($id);
|
||||
if (!$r) {
|
||||
$error=_("This user doesn't exist");
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
||||
if (! empty($error) ) {
|
||||
|
|
|
@ -34,15 +34,19 @@ $fields = array (
|
|||
"id" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$r=$mysql->get_user_dblist($id);
|
||||
?>
|
||||
<h3><?php printf(_("MySQL Rights for %s"),$id) ?></h3>
|
||||
<hr id="topbar"/>
|
||||
<br />
|
||||
<?php
|
||||
if (isset($error) && $error) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
$r=$mysql->get_user_dblist($id);
|
||||
if (!$r) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
echo "<p class=\"error\">$error</p><p> </p>";
|
||||
require_once('foot.php');
|
||||
}
|
||||
|
||||
if ($r) {
|
||||
|
|
Loading…
Reference in New Issue