mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
fix small bug on links
This commit is contained in:
parent
6212ad3c78
commit
6d020a06bd
@ -262,7 +262,7 @@ class bo_resources
|
|||||||
*/
|
*/
|
||||||
function link_title( $resource )
|
function link_title( $resource )
|
||||||
{
|
{
|
||||||
if (!is_array($resource))
|
if (!is_array($resource) && $resource > 0)
|
||||||
{
|
{
|
||||||
$resource = $this->so->read($resource);
|
$resource = $this->so->read($resource);
|
||||||
$title = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
$title = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
||||||
|
Loading…
Reference in New Issue
Block a user