Resque_Redis: use && rather than and

This commit is contained in:
Petr Kotek 2016-10-20 23:58:23 +02:00 committed by GitHub
parent 3c5dac8789
commit b054df780f

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;