From: Cash Costello Date: Thu, 6 Jun 2013 00:28:29 +0000 (-0400) Subject: removed crazy code that doesn't do anything useful - only fires when $blog->foo ... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8dbdf2f72c9dccbbd471e805fbd112c6817cdcec;p=lorea%2Felgg.git removed crazy code that doesn't do anything useful - only fires when $blog->foo = false --- 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; } }