forked from extern/egroupware
Fix for mssql or ODBC support.
This commit is contained in:
parent
bfc712116d
commit
78950a92bf
@ -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__);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user