aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 52ed40f8b..db3665c6f 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -385,8 +385,9 @@
* Save generic attributes to the entities table.
*/
public function save()
- {
- if ($this->guid != "" && $this->guid > 0)
+ {
+ $guid = (int) $this->guid;
+ if ($guid > 0)
{
return update_entity(
$this->get('guid'),