From ae308ff1fd738577bd3ad79c981f43ab424281d9 Mon Sep 17 00:00:00 2001 From: Keyan Pishdadian Date: Fri, 7 Oct 2016 18:31:06 -0400 Subject: [PATCH] Allow empty prefix --- lib/Resque/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Redis.php b/lib/Resque/Redis.php index e588ded..db990cd 100644 --- a/lib/Resque/Redis.php +++ b/lib/Resque/Redis.php @@ -98,7 +98,7 @@ class Resque_Redis */ public static function prefix($namespace) { - if (substr($namespace, -1) !== ':') { + if (substr($namespace, -1) !== ':' and $namespace != '') { $namespace .= ':'; } self::$defaultNamespace = $namespace;