Fix typo error (again).

This commit is contained in:
kj 2020-05-02 14:04:49 -04:00
parent 28ada2810d
commit 2ba6079f17

View File

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