Skip to content
Snippets Groups Projects
Commit b2627954 authored by Tom Needham's avatar Tom Needham
Browse files

Simpler method for getting the first char

parent d89be729
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ class OC_API {
private static function toXML($array, $writer) {
foreach($array as $k => $v) {
if (substr($k, 0, 1) === '@') {
if ($k[0] === '@') {
$writer->writeAttribute(substr($k, 1), $v);
continue;
} else if (is_numeric($k)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment