Skip to content

Commit ae308ff

Browse files
committed
Allow empty prefix
1 parent 15a14d8 commit ae308ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resque/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Resque_Redis
9898
*/
9999
public static function prefix($namespace)
100100
{
101-
if (substr($namespace, -1) !== ':') {
101+
if (substr($namespace, -1) !== ':' and $namespace != '') {
102102
$namespace .= ':';
103103
}
104104
self::$defaultNamespace = $namespace;

0 commit comments

Comments
 (0)