mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Added returning a single category
This commit is contained in:
parent
17ede17844
commit
ef7c988605
@ -43,6 +43,9 @@
|
|||||||
function return_array($type = "all")
|
function return_array($type = "all")
|
||||||
{
|
{
|
||||||
$filter = $this->filter($type);
|
$filter = $this->filter($type);
|
||||||
|
if (gettype($type) == "integer") {
|
||||||
|
$filter = " and cat_id='$type'";
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->query("select * from phpgw_categories where cat_owner='"
|
$this->db->query("select * from phpgw_categories where cat_owner='"
|
||||||
. $this->account_id . "' and cat_appname='"
|
. $this->account_id . "' and cat_appname='"
|
||||||
|
Loading…
Reference in New Issue
Block a user