From d12768c7bc9e0f477b0b1c50aed0d4747c5aaef5 Mon Sep 17 00:00:00 2001 From: z38 Date: Wed, 2 Apr 2014 09:06:10 +0200 Subject: [PATCH] Fix multiple-character handles --- src/Shuble/Slurpy/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shuble/Slurpy/Factory.php b/src/Shuble/Slurpy/Factory.php index 8b1319e..98882be 100644 --- a/src/Shuble/Slurpy/Factory.php +++ b/src/Shuble/Slurpy/Factory.php @@ -367,6 +367,6 @@ protected function getPageRange($handle, $input) */ protected function generateFileHandle($index) { - return chr(65 + floor($index/26) % 26) . chr(65 + $index % 26); + return (($index >= 26) ? chr(65 + (floor($index / 26) - 1) % 26) : '') . chr(65 + $index % 26); } }