]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
small river issue fixed
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 27 May 2010 11:53:13 +0000 (11:53 +0000)
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 27 May 2010 11:53:13 +0000 (11:53 +0000)
git-svn-id: http://code.elgg.org@6251 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/river/object/videolist/create.php

index 9cb170bc28907e725d3d600afc0cb26806d8bc08..cad31c5db479f4c54b911066f8ea59938e812ecd 100644 (file)
@@ -15,7 +15,7 @@ if(!$title) {
 $string = sprintf(elgg_echo("videolist:river:created"),$url) . " ";
 $string .= elgg_echo("videolist:river:item") . " titled <a href=\"" . $object->getURL() . "\">" . $title . "</a>";
 //if the video was added to a group, show that unless displayed on the group profile
-if($is_group && get_context() != 'groups'){
+if(($is_group instanceof ElggGroup) && (get_context() != 'groups')){
        $string .= " " . elgg_echo('videolist:ingroup') . " " . $is_group->name;
 }
 $string .= "<span class='entity_subtext'>" . friendly_time($object->time_created) . "</span>";