Fixed wrong var in age lookup

This commit is contained in:
Mattia Mascarello 2021-08-23 01:39:23 +02:00 committed by GitHub
parent bc8a5634e5
commit 7eaf87c793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,8 +726,8 @@ switch ($DATA["message"]["chat"]["id"]) {
} else { } else {
//file_put_contents("test","yes"); //file_put_contents("test","yes");
$x = $people->get($rpid); $x = $people->get($rpid);
$u->yearsOld=years($u->birthDate); $x->yearsOld=years($u->birthDate);
$u->save(); $x->save();
if (count($args) == 2) { if (count($args) == 2) {
if (in_array($args[1], array_keys($x->toArray()))) { if (in_array($args[1], array_keys($x->toArray()))) {