diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-06-05 20:28:29 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-06-05 20:28:29 -0400 |
commit | 8dbdf2f72c9dccbbd471e805fbd112c6817cdcec (patch) | |
tree | 6a0bde607c1e6170e1b8360b23838cab1b915c59 /mod/blog | |
parent | 1c78d41f46f71a32cde84841ab03eac13113b20e (diff) | |
download | elgg-8dbdf2f72c9dccbbd471e805fbd112c6817cdcec.tar.gz elgg-8dbdf2f72c9dccbbd471e805fbd112c6817cdcec.tar.bz2 |
removed crazy code that doesn't do anything useful - only fires when $blog->foo = false
Diffstat (limited to 'mod/blog')
-rw-r--r-- | mod/blog/actions/blog/save.php | 5 |
1 files changed, 1 insertions, 4 deletions
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; } } |