Fix for mssql or ODBC support.

This commit is contained in:
skeeter 2002-04-14 03:27:50 +00:00
parent bfc712116d
commit 78950a92bf

View File

@ -495,9 +495,9 @@
if (!$cat_values['parent'] || $cat_values['parent'] == 0)
{
$this->db->query("SELECT MAX(cat_id) AS max FROM phpgw_categories",__LINE__,__FILE__);
$this->db->query("SELECT MAX(cat_id) FROM phpgw_categories",__LINE__,__FILE__);
$this->db->next_record();
$max = $this->db->f('max');
$max = $this->db->f(0);
$this->db->query("UPDATE phpgw_categories SET cat_main='" . $max . "' WHERE cat_id='"
. $max . "'",__LINE__,__FILE__);
}