Fix missed db connection in escaping values when storing notification

This commit is contained in:
Fedor A. Fetisov 2013-09-24 23:25:32 +04:00
parent 96e1f4047e
commit 7113ab3158

View File

@ -51,6 +51,7 @@ $kind = verifyparam("kind", "/^(mail|xmpp)?$/", "");
$page['allkinds'] = array('', 'mail', 'xmpp');
# fetch
$link = connect();
$conditions = array();
if ($kind) {
@ -60,7 +61,6 @@ if ($lang) {
$conditions[] = "locale = '" . mysql_real_escape_string($lang, $link) . "'";
}
$link = connect();
select_with_pagintation(
"id, locale, vckind, vcto, unix_timestamp(dtmcreated) as created, vcsubject, tmessage, refoperator", "${mysqlprefix}chatnotification",
$conditions,