diff --git a/QuickBooks/Cast.php b/QuickBooks/Cast.php index d58f5c11..f97d3818 100755 --- a/QuickBooks/Cast.php +++ b/QuickBooks/Cast.php @@ -255,7 +255,7 @@ static public function cast($type_or_action, $field, $value, $use_abbrevs = true $dh = opendir(dirname(__FILE__) . '/QBXML/Schema/Object'); while (false !== ($file = readdir($dh))) { - if ($file{0} == '.' or substr($file, -6, 6) != 'Rq.php') + if ($file[0] == '.' or substr($file, -6, 6) != 'Rq.php') { continue; }