mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
Fix missed db connection in escaping values when storing notification
This commit is contained in:
parent
96e1f4047e
commit
7113ab3158
@ -51,6 +51,7 @@ $kind = verifyparam("kind", "/^(mail|xmpp)?$/", "");
|
|||||||
$page['allkinds'] = array('', 'mail', 'xmpp');
|
$page['allkinds'] = array('', 'mail', 'xmpp');
|
||||||
|
|
||||||
# fetch
|
# fetch
|
||||||
|
$link = connect();
|
||||||
|
|
||||||
$conditions = array();
|
$conditions = array();
|
||||||
if ($kind) {
|
if ($kind) {
|
||||||
@ -60,7 +61,6 @@ if ($lang) {
|
|||||||
$conditions[] = "locale = '" . mysql_real_escape_string($lang, $link) . "'";
|
$conditions[] = "locale = '" . mysql_real_escape_string($lang, $link) . "'";
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = connect();
|
|
||||||
select_with_pagintation(
|
select_with_pagintation(
|
||||||
"id, locale, vckind, vcto, unix_timestamp(dtmcreated) as created, vcsubject, tmessage, refoperator", "${mysqlprefix}chatnotification",
|
"id, locale, vckind, vcto, unix_timestamp(dtmcreated) as created, vcsubject, tmessage, refoperator", "${mysqlprefix}chatnotification",
|
||||||
$conditions,
|
$conditions,
|
||||||
|
Loading…
Reference in New Issue
Block a user