aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/private_settings.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-01-25 15:48:54 -0500
committercash <cash.costello@gmail.com>2013-01-25 15:48:54 -0500
commit28b0a852a9ba65998d875d7ec5579a30ffedffc4 (patch)
treedab2f6d8bd255aa118ccb128353374038c46752b /engine/lib/private_settings.php
parentb60f6e6b921c2d25867c23790130be9a0386c0a4 (diff)
downloadelgg-28b0a852a9ba65998d875d7ec5579a30ffedffc4.tar.gz
elgg-28b0a852a9ba65998d875d7ec5579a30ffedffc4.tar.bz2
Fixes #4992 - saving temporary private settings works now
Diffstat (limited to 'engine/lib/private_settings.php')
-rw-r--r--engine/lib/private_settings.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/engine/lib/private_settings.php b/engine/lib/private_settings.php
index 1fa9bdb66..7541f7b3b 100644
--- a/engine/lib/private_settings.php
+++ b/engine/lib/private_settings.php
@@ -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')