aboutsummaryrefslogtreecommitdiffstats
path: root/lib/templatelayout.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-29 14:39:28 +0200
committerBart Visscher <bartv@thisnet.nl>2012-10-10 21:06:15 +0200
commitc5983d37ad722069709ccb9ca20b7354652fdfc9 (patch)
treed962fe07c2ab811a5a633f002247ade0da018bad /lib/templatelayout.php
parentfe40277ec2321692865041117e90bea558f83c15 (diff)
downloadnextcloud-server-c5983d37ad722069709ccb9ca20b7354652fdfc9.tar.gz
nextcloud-server-c5983d37ad722069709ccb9ca20b7354652fdfc9.zip
No need to use array_search
Diffstat (limited to 'lib/templatelayout.php')
-rw-r--r--lib/templatelayout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index c898628bcdf..966d02011f4 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -13,7 +13,7 @@ class OC_TemplateLayout extends OC_Template {
if( $renderas == 'user' ) {
parent::__construct( 'core', 'layout.user' );
$this->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' ), false);
- if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false) {
+ if(in_array(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false) {
$this->assign('bodyid','body-settings', false);
}else{
$this->assign('bodyid','body-user', false);