From 8dbdf2f72c9dccbbd471e805fbd112c6817cdcec Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 5 Jun 2013 20:28:29 -0400 Subject: removed crazy code that doesn't do anything useful - only fires when $blog->foo = false --- mod/blog/actions/blog/save.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mod') diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 658f83580..82a9e6c51 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -121,10 +121,7 @@ if ($values['status'] == 'draft') { // assign values to the entity, stopping on error. if (!$error) { foreach ($values as $name => $value) { - if (FALSE === ($blog->$name = $value)) { - $error = elgg_echo('blog:error:cannot_save' . "$name=$value"); - break; - } + $blog->$name = $value; } } -- cgit v1.2.3