From 7eaf87c79337bdfd73d35936f2a4a71854016955 Mon Sep 17 00:00:00 2001 From: MatMasIt Date: Mon, 23 Aug 2021 01:39:23 +0200 Subject: [PATCH] Fixed wrong var in age lookup --- src/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index 3405378..3d9f243 100644 --- a/src/index.php +++ b/src/index.php @@ -726,8 +726,8 @@ switch ($DATA["message"]["chat"]["id"]) { } else { //file_put_contents("test","yes"); $x = $people->get($rpid); - $u->yearsOld=years($u->birthDate); - $u->save(); + $x->yearsOld=years($u->birthDate); + $x->save(); if (count($args) == 2) { if (in_array($args[1], array_keys($x->toArray()))) {