From: Bart Visscher Date: Sat, 29 Sep 2012 12:39:28 +0000 (+0200) Subject: No need to use array_search X-Git-Tag: v5.0.0alpha1~819 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c5983d37ad722069709ccb9ca20b7354652fdfc9;p=nextcloud-server.git No need to use array_search --- 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);