From 9d2a2514ceb62a72b32ed3a17703c8cff370cec1 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 9 Jun 2008 10:38:29 +0000 Subject: Fixed issue on save git-svn-id: https://code.elgg.org/elgg/trunk@825 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index f08c58383..703c5c891 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -386,7 +386,7 @@ */ public function save() { - if (($this->get('guid') != "") || ($this->get('guid') > 0)) + if (!empty($this->guid)) { return update_entity( $this->get('guid'), -- cgit v1.2.3