diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-20 00:44:53 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-20 00:44:53 +0000 |
commit | 0e4c0fc5462386354cdd2c8920be2946f702b98c (patch) | |
tree | 367e4e0d1b10de32859c73a58376b0579f3caedd /views | |
parent | 6913e7153000ff39f491accf06cf5817f7e6bfd3 (diff) | |
download | elgg-0e4c0fc5462386354cdd2c8920be2946f702b98c.tar.gz elgg-0e4c0fc5462386354cdd2c8920be2946f702b98c.tar.bz2 |
added check to make sure we have permissions to view the image
Diffstat (limited to 'views')
-rw-r--r-- | views/default/river/object/image/tag.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/river/object/image/tag.php b/views/default/river/object/image/tag.php index cfe01e444..6e60d5af3 100644 --- a/views/default/river/object/image/tag.php +++ b/views/default/river/object/image/tag.php @@ -8,6 +8,9 @@ $title = "untitled";
}
+ // viewer may not have permission to view image
+ if (!$image)
+ return;
$image_url = "<a href=\"{$image->getURL()}\">{$title}</a>";
|