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 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'),