diff --git a/ChargeOverAPI/Object.php b/ChargeOverAPI/Object.php index 1d9d55b..2dac2f8 100755 --- a/ChargeOverAPI/Object.php +++ b/ChargeOverAPI/Object.php @@ -69,7 +69,7 @@ public static function transformMethodToField($method) $len = strlen($method); for ($i = 0; $i < $len; $i++) { - if ($method{$i} >= 'A' and $method{$i} <= 'Z') + if ($method[$i] >= 'A' and $method[$i] <= 'Z') { $parts[] = substr($method, $last, $i - $last); $last = $i; @@ -91,7 +91,7 @@ public static function transformFieldToMethod($field, $prefix = 'set') $len = strlen($field); for ($i = 0; $i < $len; $i++) { - if ($field{$i} == '_') + if ($field[$i] == '_') { $parts[] = ucfirst(substr($field, $last, $i)); $i++;