aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'),