Skip to content

Commit d341f11

Browse files
authored
Merge pull request #304 from TeachersPayTeachers/master
Allow empty prefix
2 parents 15a14d8 + ae308ff commit d341f11

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)