From d95babfc9ed034c66f35f4690818acb07db8037d Mon Sep 17 00:00:00 2001 From: habarnam Date: Sun, 31 Aug 2008 19:48:11 +0300 Subject: [PATCH] * the tdoAbstract::insert didn't work. this fixes it --- _res/_libs/tdoabstract.class.php | 12 ++++++------ _res/_libs/tscontrollerhtml.class.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_res/_libs/tdoabstract.class.php b/_res/_libs/tdoabstract.class.php index 1e9d17e..3e90d8c 100644 --- a/_res/_libs/tdoabstract.class.php +++ b/_res/_libs/tdoabstract.class.php @@ -275,8 +275,8 @@ class tdoAbstract { public function insert () { $sql = $this->db->_INSERT ($this->name);//`'INSERT INTO '.$this->name; - $fieldStr = ''; - $valueStr = ''; +// $fieldStr = ''; +// $valueStr = ''; $values = array (); $f = $this->get_members(); @@ -287,14 +287,14 @@ class tdoAbstract { $value = $this->escape ($field->value); $value = $field->value; - $fieldStr.= (!empty ($fieldStr) ? ', ' : ' ') . $fieldName; - $valueStr.= (!empty ($valueStr) ? ', ' : ' ') . $value; +// $fieldStr.= (!empty ($fieldStr) ? ', ' : ' ') . $fieldName; +// $valueStr.= (!empty ($valueStr) ? ', ' : ' ') . $value; $values[] = $value; } } - $sql.= ' ('.$fieldStr.') VALUES ('.$valueStr.')'; -// $sql.= ' ('.$fieldStr.')' . $this->db->_VALUES ($values); // VALUES ('.$valueStr.')'; +// $sql.= ' ('.$fieldStr.') VALUES ('.$valueStr.')'; + $sql.= ' ('.$fieldStr.')' . $this->db->_VALUES ($values); if ($fieldStr) { $this->db->query($sql); diff --git a/_res/_libs/tscontrollerhtml.class.php b/_res/_libs/tscontrollerhtml.class.php index 416d11c..99ec7d7 100644 --- a/_res/_libs/tscontrollerhtml.class.php +++ b/_res/_libs/tscontrollerhtml.class.php @@ -30,7 +30,7 @@ class tsControllerHtml extends tsController { $prevOutput = ob_get_clean(); // errors previous to the tsController init // $this->output = $this->setOutput(); - // Override standard string functions + // Override standard string functions with UTF8 ones - not working if (extension_loaded('mbstring')) { ini_set('mbstring.func_overload', 7); } -- 2.11.4.GIT