Browse Source

Using isset to check if prefix handlers have been initialized is faster.

Daniele Alessandri 15 years ago
parent
commit
84fb4390f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -363,7 +363,7 @@ class Response {
         $prefix  = $header[0];
         $payload = substr($header, 1, -2);
 
-        if (self::$_prefixHandlers === null) {
+        if (!isset(self::$_prefixHandlers)) {
             self::$_prefixHandlers = self::initializePrefixHandlers();
         }
         if (!isset(self::$_prefixHandlers[$prefix])) {