]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed crazy code that doesn't do anything useful - only fires when $blog->foo ...
authorCash Costello <cash.costello@gmail.com>
Thu, 6 Jun 2013 00:28:29 +0000 (20:28 -0400)
committerCash Costello <cash.costello@gmail.com>
Thu, 6 Jun 2013 00:28:29 +0000 (20:28 -0400)
mod/blog/actions/blog/save.php

index 658f83580dbcc1c64c8e1d82666c7c140d8c1761..82a9e6c513196606c6bf0d6d1d16c82d36d03dd1 100644 (file)
@@ -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;
        }
 }