From 68be47602abd5274e5c185c87bffa791fceba46c Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 9 Jun 2008 11:29:50 +0000 Subject: Fixed previously-introduced entity save issue. git-svn-id: https://code.elgg.org/elgg/trunk@827 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), -- cgit v1.2.3