Merge pull request #23154 from civicrm/5.49
[civicrm-core.git] / Civi / Crypto / CryptoToken.php
index 316159a3e495beff23e4851fc0fda1b0b4ac8cc3..afe415d844f85b62315ef5cc5de36c775d5e9aa8 100644 (file)
@@ -77,7 +77,7 @@ class CryptoToken {
    * @return bool
    */
   public function isPlainText($plainText) {
-    return is_string($plainText) && ($plainText === '' || $plainText{0} !== $this->delim);
+    return is_string($plainText) && ($plainText === '' || $plainText[0] !== $this->delim);
   }
 
   /**