diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 374abd4d0e..218c22facc 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -15,8 +15,8 @@ * * the class can be used in following ways: * 1) by calling the constructor with an app and table-name or - * 2) by setting the following documented class-vars in a class derifed from this one - * Of cause can you derife the class and call the constructor with params. + * 2) by setting the following documented class-vars in a class derived from this one + * Of cause you can derive from the class and call the constructor with params. * * @package etemplate * @subpackage api @@ -148,6 +148,15 @@ class so_sql */ var $columns_to_search; + /** + * Table has boolean fields, which need automatic conversation, got set automatic by call to setup_table + * + * Set it to false, if you dont want automatic conversation + * + * @var boolean + */ + protected $has_bools = false; + /** * Should search return an iterator (true) or an array (false = default) * @@ -252,7 +261,7 @@ class so_sql $this->table_def = $this->db->get_table_definitions($app,$table); if (!$this->table_def || !is_array($this->table_def['fd'])) { - echo "
so_sql::setup_table('$app','$table'): No table definitions found !!!
\n".function_backtrace()."