commit | 7a7ad782b2f125622509a77c5a6f94ad4ae0f93c | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Nov 12 17:21:01 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Nov 12 17:21:01 2012 +0200 |
tree | 8b849b80e51492877c60a7b976d33a0ddba68d46 | |
parent | a9ab46d7a031bda304eb9b6658ffaf693b8d9bcb [diff] [blame] |
Some micro-optimizations
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index c923a62..d303503 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php
@@ -394,7 +394,7 @@ } } - return preg_match('/^[0-9]+$/', $tb_id) ? $tb_id : FALSE; + return ctype_digit((string) $tb_id) ? $tb_id : FALSE; } // --------------------------------------------------------------------