]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4992 - saving temporary private settings works now
authorcash <cash.costello@gmail.com>
Fri, 25 Jan 2013 20:48:54 +0000 (15:48 -0500)
committercash <cash.costello@gmail.com>
Fri, 25 Jan 2013 20:48:54 +0000 (15:48 -0500)
engine/lib/private_settings.php

index 1fa9bdb664f93ac497a041d72462d0575ce06f41..7541f7b3b8df04d36fbdfd52973371477d209823 100644 (file)
@@ -349,11 +349,6 @@ function set_private_setting($entity_guid, $name, $value) {
        $name = sanitise_string($name);
        $value = sanitise_string($value);
 
-       $entity = get_entity($entity_guid);
-       if (!$entity instanceof ElggEntity) {
-               return false;
-       }
-
        $result = insert_data("INSERT into {$CONFIG->dbprefix}private_settings
                (entity_guid, name, value) VALUES
                ($entity_guid, '$name', '$value')