Merge pull request #313 from petrkotek/petrkotek-patch-1

Resque_Redis: use `&&` rather than `and`
This commit is contained in:
Chris Boulton 2016-10-20 17:00:54 -05:00 committed by GitHub
commit a03f00f2a0

View File

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