summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2013-01-24 10:49:48 +0000
committerTom Needham <needham.thomas@gmail.com>2013-01-24 10:49:48 +0000
commitb26279546c78618b167e4a8e7a4a10db01c7d479 (patch)
tree0bb11589afcdb286c619ae02c9ae270a1f3a748f /lib/api.php
parentd89be72972626ed4817df723482f6767372d9391 (diff)
downloadnextcloud-server-b26279546c78618b167e4a8e7a4a10db01c7d479.tar.gz
nextcloud-server-b26279546c78618b167e4a8e7a4a10db01c7d479.zip
Simpler method for getting the first char
Diffstat (limited to 'lib/api.php')
-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)) {