From 7113ab3158f12ba3665cba240b0051639e90067a Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Tue, 24 Sep 2013 23:25:32 +0400 Subject: [PATCH] Fix missed db connection in escaping values when storing notification --- src/messenger/webim/operator/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/notifications.php b/src/messenger/webim/operator/notifications.php index 24b49093..aa478c9c 100644 --- a/src/messenger/webim/operator/notifications.php +++ b/src/messenger/webim/operator/notifications.php @@ -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,