Merge pull request #22561 from mattwire/jobapi3
[civicrm-core.git] / CRM / Utils / SQL / Insert.php
index 816c89f605d0079eb949a02d1e2be230c31473f5..96970e23c5f4bf0bfb4e9c514dbd907447ebcff6 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Utils_SQL_Insert {
         $value = NULL;
       }
       // Skip '_foobar' and '{\u00}*_options' and 'N'.
-      if (preg_match('/[a-zA-Z]/', $key{0}) && $key !== 'N') {
+      if (preg_match('/[a-zA-Z]/', $key[0]) && $key !== 'N') {
         $row[$key] = $value;
       }
     }
@@ -158,7 +158,7 @@ class CRM_Utils_SQL_Insert {
   /**
    * Escape string.
    *
-   * @param string|NULL $value
+   * @param string|null $value
    *
    * @return string
    *   SQL expression, e.g. "it\'s great" (with-quotes) or NULL (without-quotes)