aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-08 21:23:25 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-08 21:38:10 +0200
commitac365121022f8b03ac47c41f8b3e32f9ba3f90e6 (patch)
tree6be1b33ec22dad1f74c46f97728362288176206b /lib/app.php
parentb9a152450837c90ab3463c0d00ff05219d4b875e (diff)
downloadnextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.tar.gz
nextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.zip
Don't use substr to get first char of string
Diffstat (limited to 'lib/app.php')
-rwxr-xr-xlib/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index e8a5a1291d9..0c51e3c5532 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -469,7 +469,7 @@ class OC_App{
$apps=array();
$dh=opendir(OC::$APPSROOT.'/apps');
while($file=readdir($dh)){
- if(substr($file,0,1)!='.' and is_file(OC::$APPSROOT.'/apps/'.$file.'/appinfo/app.php')){
+ if($file[0]!='.' and is_file(OC::$APPSROOT.'/apps/'.$file.'/appinfo/app.php')){
$apps[]=$file;
}
}