Suite patch 4376
This commit is contained in:
parent
6daa431482
commit
bb7e2e7b2a
|
@ -320,7 +320,7 @@ class m_mysql {
|
|||
* an error occured, such as db does not exist.
|
||||
*/
|
||||
function del_db($dbn) {
|
||||
global $db,$err,$mem,$cuid,$L_MYSQL_DATABASE;
|
||||
global $db,$err,$mem,$cuid;
|
||||
$err->log("mysql","del_db",$dbn);
|
||||
$dbname=addslashes($dbn);
|
||||
$db->query("SELECT uid FROM db WHERE db='$dbname';");
|
||||
|
@ -786,7 +786,7 @@ class m_mysql {
|
|||
* @return TRUE if the user has been deleted in MySQL or FALSE if an error occurred
|
||||
**/
|
||||
function del_user($user,$all=null) {
|
||||
global $db,$err,$mem,$cuid,$L_MYSQL_DATABASE;
|
||||
global $db,$err,$mem,$cuid;
|
||||
$err->log("mysql","del_user",$user);
|
||||
if (!preg_match("#^[0-9a-z]#",$user)) {
|
||||
$err->raise("mysql",_("The username can contain only letters and numbers"));
|
||||
|
|
Loading…
Reference in New Issue