Merge pull request #304 from TeachersPayTeachers/master

Allow empty prefix
This commit is contained in:
Chris Boulton 2016-10-11 12:00:39 -07:00 committed by GitHub
commit d341f11254

View File

@ -98,7 +98,7 @@ class Resque_Redis
*/ */
public static function prefix($namespace) public static function prefix($namespace)
{ {
if (substr($namespace, -1) !== ':') { if (substr($namespace, -1) !== ':' and $namespace != '') {
$namespace .= ':'; $namespace .= ':';
} }
self::$defaultNamespace = $namespace; self::$defaultNamespace = $namespace;