summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorJoe7 <jozsef.rnagy@site.hu>2011-04-02 18:52:54 +0200
committerJoe7 <jozsef.rnagy@site.hu>2011-04-02 18:52:54 +0200
commit074f801acdd7d7b1a0a0a5e4ac8c5badfc253cad (patch)
tree081d5c63c1731c541d265e27f3d5b8b6150f0569 /modules/tag
parent073650192c094080b689cd8ee202554b992223dc (diff)
Fix against Ticket #1666
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag_event.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php
index efef916f..df81ae65 100644
--- a/modules/tag/helpers/tag_event.php
+++ b/modules/tag/helpers/tag_event.php
@@ -110,11 +110,11 @@ class tag_event_Core {
}
static function add_photos_form($album, $form) {
- if (!isset($group->uploadify)) {
+ $group = $form->add_photos;
+ if (!is_object($group->uploadify)) {
return;
}
- $group = $form->add_photos;
$group->input("tags")
->label(t("Add tags to all uploaded files"))
->value("");
@@ -133,7 +133,8 @@ class tag_event_Core {
}
static function add_photos_form_completed($album, $form) {
- if (!isset($group->uploadify)) {
+ $group = $form->add_photos;
+ if (!is_object($group->uploadify)) {
return;
}