No need to use array_search

This commit is contained in:
Bart Visscher 2012-09-29 14:39:28 +02:00
parent fe40277ec2
commit c5983d37ad
1 changed files with 1 additions and 1 deletions

View File

@ -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);