diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-04-09 13:46:31 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-04-09 20:48:17 +0200 |
commit | 5940316125c1672b72eb08186e6c43f5a91e71ef (patch) | |
tree | 1faaaa87d116a64d60fdbcf513139bd05c3ea4e6 /application/models | |
parent | c0f1755842211996a7a21ffb8773b260bb2be281 (diff) |
random_id() -> random_alphanum(); allow single argument
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/file_mod.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |