aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/blog/views/default/river/object/blog/create.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php
index 38ee177ed..026145612 100644
--- a/mod/blog/views/default/river/object/blog/create.php
+++ b/mod/blog/views/default/river/object/blog/create.php
@@ -3,6 +3,12 @@
* Blog river view.
*/
+// @todo catch until riverdashboard plugin is updated
+if ($vars['item'] instanceof stdClass) {
+ echo "The riverdashboard plugin has not been updated yet to use the new ElggRiverItem Class";
+ return true;
+}
+
$object = $vars['item']->getObjectEntity();
$excerpt = strip_tags($object->excerpt);
$excerpt = elgg_get_excerpt($excerpt);