diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index dbe9e24c..cafdb61c 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -379,6 +379,11 @@ function db_escape_string($string, $link = NULL) return mysql_real_escape_string($string, $link); } +function db_error($link) +{ + return mysql_error($link); +} + function perform_query($query, $link) { mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));