From 281a9097a225707b793a7f2dee88bedc3911dbe6 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 13 Dec 2010 12:43:05 +0000 Subject: Refs #2226 need a catch in river views until riverdashboard plugin is updated git-svn-id: http://code.elgg.org/elgg/trunk@7612 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/river/object/blog/create.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/blog/views/default') 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); -- cgit v1.2.3