Oops, within the class here.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6dea91b30b
commit
596db96326
|
@ -275,7 +275,7 @@ class wpdb {
|
||||||
$bits = array();
|
$bits = array();
|
||||||
foreach ( array_keys($data) as $k )
|
foreach ( array_keys($data) as $k )
|
||||||
$bits[] = "`$k`='$data[$k]'";
|
$bits[] = "`$k`='$data[$k]'";
|
||||||
$where_val = $wpdb->escape($where_val);
|
$where_val = $this->escape($where_val);
|
||||||
return $this->query("UPDATE $table SET ".implode(', ',$bits)." WHERE $where_col = '$where_val' LIMIT 1");
|
return $this->query("UPDATE $table SET ".implode(', ',$bits)." WHERE $where_col = '$where_val' LIMIT 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue