From 5940316125c1672b72eb08186e6c43f5a91e71ef Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 9 Apr 2012 13:46:31 +0200 Subject: random_id() -> random_alphanum(); allow single argument Signed-off-by: Florian Pritz --- application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/models') diff --git a/application/models/file_mod.php b/application/models/file_mod.php index 1f1fa5f49..b6194a39e 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -23,7 +23,7 @@ class File_mod extends CI_Model { // TODO: make threadsafe function new_id() { - $id = random_id(3,6); + $id = random_alphanum(3,6); if ($this->id_exists($id) || $id == 'file' || $id == 'user') { return $this->new_id(); -- cgit v1.2.3-24-g4f1b