Allow empty prefix

This commit is contained in:
Keyan Pishdadian 2016-10-07 18:31:06 -04:00
parent 15a14d8a86
commit ae308ff1fd

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;