projects
/
project/colorbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
16a9327
)
#928950: Undefined property fix.
author
Fredrik Jonsson
Fri, 1 Oct 2010 20:51:46 +0000 (20:51 +0000)
committer
Fredrik Jonsson
Fri, 1 Oct 2010 20:51:46 +0000 (20:51 +0000)
colorbox.theme.inc
patch
|
blob
|
blame
|
history
diff --git
a/colorbox.theme.inc
b/colorbox.theme.inc
index
d90ec6f
..
15baf19
100644
(file)
--- a/
colorbox.theme.inc
+++ b/
colorbox.theme.inc
@@
-48,7
+48,7
@@
function theme_colorbox_image_formatter($variables) {
}
// Build the gallery id.
- $nid = $node->nid ? $node->nid : 'nid';
+ $nid = !empty($node->nid) ? $node->nid : 'nid';
switch (variable_get('colorbox_imagefield_gallery', 1)) {
case 0:
$gallery_id = 'all';