1 Commits
3.3.0 ... 3.3.1

Author SHA1 Message Date
e263eb3f0b resolved #22 2025-02-17 20:55:11 +07:00

View File

@@ -495,7 +495,11 @@ class database
*
* @return int Amount of records
*/
public function count(): int{
public function count(): int
{
// Deleting the database file cache
clearstatcache(true, $this->database);
// Exit (success)
return $this->length > 0 && file_exists($this->database) ? filesize($this->database) / $this->length : 0;
}