mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
updated return_array() to work with queries plus added function to read one cat
This commit is contained in:
parent
6fa74c988f
commit
548d841d1e
@ -45,7 +45,6 @@
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
$filter = $this->filter($type);
|
||||
|
||||
if (!$sort) { $sort = "ASC"; }
|
||||
|
||||
if ($order) { $ordermethod = " order by $order $sort"; }
|
||||
@ -79,7 +78,8 @@
|
||||
function return_single($id = '')
|
||||
{
|
||||
|
||||
$this->db->query("select * from phpgw_categories where cat_id='$id'",__LINE__,__FILE__);
|
||||
$this->db->query("select * from phpgw_categories where cat_id='$id' and "
|
||||
. "cat_appname='" . $this->app_name . "'",__LINE__,__FILE__);
|
||||
|
||||
$this->db->next_record(); {
|
||||
$cats[0]['id'] = $this->db->f('cat_id');
|
||||
|
Loading…
Reference in New Issue
Block a user