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;