summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index d4deac24c7c..76542156d95 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -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)) {