diff --git a/userpoints.module b/userpoints.module
index 0f51b96..7b1c0db 100644
--- a/userpoints.module
+++ b/userpoints.module
@@ -1817,7 +1817,7 @@ function userpoints_create_description($transaction, array $options = array()) {
   // Link to the referenced entity, if available.
   if ($entity && $options['link']) {
     $uri = entity_uri($transaction->entity_type, $entity);
-    if ($uri) {
+    if (isset($uri['path'])) {
       $description = l($description, $uri['path'], $uri['options'] + array('html' => $safe, 'attributes' => $attributes));
     }
   }
