X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/9aad88c45d93dadacd35176364b56df4734c017b..2aece99eee79773867b883158938faa0a66ad00b:/Entity/Location.php?ds=inline

diff --git a/Entity/Location.php b/Entity/Location.php
index 1fdca93..6e66cea 100644
--- a/Entity/Location.php
+++ b/Entity/Location.php
@@ -427,9 +427,9 @@ class Location {
 	 */
 	public function preUpdate(PreUpdateEventArgs $eventArgs) {
 		//Check that we have a location instance
-		if (($user = $eventArgs->getEntity()) instanceof Location) {
+		if (($location = $eventArgs->getEntity()) instanceof Location) {
 			//Set updated value
-			$user->setUpdated(new \DateTime('now'));
+			$location->setUpdated(new \DateTime('now'));
 		}
 	}