Skip to content
Snippets Groups Projects
Commit 6389e530 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#50006 by chx. Selects on the client table do not need db_rewrite_sql().

parent 4a36c944
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -183,7 +183,7 @@ function drupal_client_ping($client, $system) { ...@@ -183,7 +183,7 @@ function drupal_client_ping($client, $system) {
*/ */
if ($client['link'] && $client['name'] && $client['mail'] && $client['slogan'] && $client['mission']) { if ($client['link'] && $client['name'] && $client['mail'] && $client['slogan'] && $client['mission']) {
$result = db_query(db_rewrite_sql("SELECT cid FROM {client} WHERE link = '%s'"), $client['link']); $result = db_query("SELECT cid FROM {client} WHERE link = '%s'", $client['link']);
if (db_num_rows($result)) { if (db_num_rows($result)) {
$record = db_fetch_object($result); $record = db_fetch_object($result);
$client['cid'] = $record->cid; $client['cid'] = $record->cid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment