Fix typo error (again).
This commit is contained in:
		| @@ -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; | ||||
|   } | ||||
| } | ||||
| ?> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user