aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 11:29:50 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-09 11:29:50 +0000
commit68be47602abd5274e5c185c87bffa791fceba46c (patch)
tree0b2843c7966428287eb33788cfb7473076325317
parent4323e2138b2b7386ac9e1c1e78fce7d5ff9a3342 (diff)
downloadelgg-68be47602abd5274e5c185c87bffa791fceba46c.tar.gz
elgg-68be47602abd5274e5c185c87bffa791fceba46c.tar.bz2
Fixed previously-introduced entity save issue.
git-svn-id: https://code.elgg.org/elgg/trunk@827 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 35577e892..52ed40f8b 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -386,7 +386,7 @@
*/
public function save()
{
- if (!empty($this->guid))
+ if ($this->guid != "" && $this->guid > 0)
{
return update_entity(
$this->get('guid'),