From 6d020a06bd1c5f3573304719a875d51c08dac48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Tue, 1 Mar 2005 08:51:16 +0000 Subject: [PATCH] fix small bug on links --- resources/inc/class.bo_resources.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index b21496ea6f..05f08f9581 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -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'].']':'');