diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-12 16:21:01 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-12 16:21:01 +0100 |
commit | 7a7ad782b2f125622509a77c5a6f94ad4ae0f93c (patch) | |
tree | 8b849b80e51492877c60a7b976d33a0ddba68d46 /system/libraries/Trackback.php | |
parent | a9ab46d7a031bda304eb9b6658ffaf693b8d9bcb (diff) |
Some micro-optimizations
Diffstat (limited to 'system/libraries/Trackback.php')
-rw-r--r-- | system/libraries/Trackback.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index c923a6220..d30350340 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php @@ -394,7 +394,7 @@ class CI_Trackback { } } - return preg_match('/^[0-9]+$/', $tb_id) ? $tb_id : FALSE; + return ctype_digit((string) $tb_id) ? $tb_id : FALSE; } // -------------------------------------------------------------------- |