From 667d06b1269a50abc03b24f923b5ab3e655b9599 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 29 Jun 2004 16:15:24 +0000 Subject: [PATCH] added "return" --- plugins/include/mysql.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/include/mysql.inc b/plugins/include/mysql.inc index 3facf025..9785ca47 100755 --- a/plugins/include/mysql.inc +++ b/plugins/include/mysql.inc @@ -18,7 +18,7 @@ * Host can be plain ip or with port seperated with ':' char. */ stock mysql_connect(host[],user[],pass[],dbname[],error[],maxlength) { - dbi_connect(host, user, pass, dbname, error, maxlength) + return dbi_connect(host, user, pass, dbname, error, maxlength) } /* Uses an existing connection (sql) to perform a new query (query) (might close previous query if any). */ @@ -33,11 +33,11 @@ native mysql_getfield(sql,fieldnum,dest[],maxlength); /* Clears query (sql) and closes connection (if any other plugin doesn't use it). */ stock mysql_close(sql) { - dbi_close(sql) + return dbi_close(sql) } /* Stores last error of current query/connection (sql) in (dest) with (maxlength) characters maximum. */ stock mysql_error(sql,dest[],maxlength) { - dbi_error(sql, dest, maxlength) + return dbi_error(sql, dest, maxlength) } \ No newline at end of file