mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 13:22:06 +02:00
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)
|
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();
|
$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='"
|
$this->db->query("UPDATE phpgw_categories SET cat_main='" . $max . "' WHERE cat_id='"
|
||||||
. $max . "'",__LINE__,__FILE__);
|
. $max . "'",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user