Moved q(\n"UPDATE to q("UPDATE

This commit is contained in:
Jeroen De Meerleer 2018-12-21 11:49:38 +01:00 committed by Hypolite Petovan
parent 82a7611488
commit a5476a4405

View File

@ -50,8 +50,7 @@ function update_1178()
$profile["pub_keywords"] = profile_clean_keywords($profile["pub_keywords"]); $profile["pub_keywords"] = profile_clean_keywords($profile["pub_keywords"]);
$r = q( $r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d",
"UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d",
DBA::escape($profile["about"]), DBA::escape($profile["about"]),
DBA::escape($profile["locality"]), DBA::escape($profile["locality"]),
DBA::escape($profile["pub_keywords"]), DBA::escape($profile["pub_keywords"]),
@ -119,8 +118,7 @@ function update_1191()
} }
// select old formlist addon entries // select old formlist addon entries
$r = q( $r = q("SELECT `uid`, `cat`, `k`, `v` FROM `pconfig` WHERE `cat` = '%s' ",
"SELECT `uid`, `cat`, `k`, `v` FROM `pconfig` WHERE `cat` = '%s' ",
DBA::escape('forumlist') DBA::escape('forumlist')
); );
@ -161,8 +159,7 @@ function update_1191()
function update_1203() function update_1203()
{ {
$r = q( $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
"UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY), DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY),
DBA::escape(Contact::PAGE_COMMUNITY), DBA::escape(Contact::PAGE_COMMUNITY),
DBA::escape(Contact::PAGE_PRVGROUP) DBA::escape(Contact::PAGE_PRVGROUP)