fix small bug on links

This commit is contained in:
Cornelius Weiß 2005-03-01 08:51:16 +00:00
parent 6212ad3c78
commit 6d020a06bd

View File

@ -262,7 +262,7 @@ class bo_resources
*/
function link_title( $resource )
{
if (!is_array($resource))
if (!is_array($resource) && $resource > 0)
{
$resource = $this->so->read($resource);
$title = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');