summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rwxr-xr-xsystem/core/Security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index bc224e7e3..782d3e83c 100755
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -559,7 +559,7 @@ class CI_Security {
*/
public function get_random_bytes($length)
{
- if (empty($length) OR ! ctype_digit($length))
+ if (empty($length) OR ! ctype_digit((string) $length))
{
return FALSE;
}