Fix typo error (again).

This commit is contained in:
kj 2020-05-02 14:04:49 -04:00
parent 28ada2810d
commit 2ba6079f17
1 changed files with 8 additions and 8 deletions

View File

@ -667,13 +667,13 @@ class ModelMySQL {
$sql = static::buildQuery();
$result = static::query($sql);
$instaces = [];
$instances = [];
while ($row = $result->fetch_assoc()) {
$instaces[] = static::getInstance($row);
$instances[] = static::getInstance($row);
}
return $instaces;
return $instances;
}
/*
@ -684,8 +684,8 @@ class ModelMySQL {
*/
public static function getFirst() { // Devuelve null si no encuentra nada
static::limit(1);
$instaces = static::get();
return empty($instaces) ? null : $instaces[0];
$instances = static::get();
return empty($instances) ? null : $instances[0];
}
/*
@ -698,13 +698,13 @@ class ModelMySQL {
$result = static::query($sql);
$instaces = [];
$instances = [];
while ($row = $result->fetch_assoc()) {
$instaces[] = static::getInstance($row);
$instances[] = static::getInstance($row);
}
return $instaces;
return $instances;
}
}
?>