summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2009-11-28 21:04:17 +0100
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2009-11-28 21:04:17 +0100
commit371258d4276f81b729db1d6ea92c7064fad860ec (patch)
tree06c0967bb1a492f1379219ebb378080088da2eb2
parent4588f816cefe1b2f34597ca3d7f7bdc994c9c2f5 (diff)
parent6d29f3f2de58e4552942718ddef7ce67dcb99c5b (diff)
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index 1c58a6916..4717a63dd 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -146,7 +146,7 @@ class UserFlagPlugin extends Plugin
function onEndShowScripts($action)
{
$action->elementStart('script', array('type' => 'text/javascript'));
- $action->raw('/*<![CDATA[*/ SN.U.FormXHR($(".form_entity_flag")); /*]]>*/');
+ $action->raw('/*<![CDATA[*/ if ($(".form_entity_flag").length > 0) { SN.U.FormXHR($(".form_entity_flag")); } /*]]>*/');
$action->elementEnd('script');
return true;
}