Fixed wrong var in age lookup
This commit is contained in:
parent
bc8a5634e5
commit
7eaf87c793
|
@ -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()))) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user