From 1aced1f7c8904dbee2acc7bbb3d3fd1dff9c3a53 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 17 Dec 2005 21:30:03 +0000 Subject: [PATCH] $name, not $field in prepare_field_for_sql() --- api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.php b/api.php index f94ba82..924ebaf 100644 --- a/api.php +++ b/api.php @@ -429,7 +429,7 @@ class API */ function prepare_field_for_sql($name) { - $type = $this->fields["$field"][F_TYPE]; + $type = $this->fields["$name"][F_TYPE]; if ($type == TYPE_NOCLEAN OR $type == TYPE_STR OR $type == TYPE_STRUN) { -- 2.43.5