PHP Error
Descrizione
Undefined offset: 0
File Sorgente
/usr1/web/vh/htcheck/htcheck-webmanager-1.0/protected/views/layouts/column2.php(36)
00024:
00025: <?php if(!Yii::app()->user->isGuest ) $this->widget('UserMenu'); ?>
00026:
00027: <?php if(!Yii::app()->user->isGuest && User::checkRole(User::ROLE_ADMIN) ) $this->widget('AdminMenu', array( 'full' => true ) ); ?>
00028:
00029: <?php
00030: // If the user is not an Admin the system will check if he can still administer some crawler
00031:
00032: $finded = false;
00033: if ( $u !== null ) {
00034: $permissions = $u->getPermissions();
00035: for ( $i = 0; $i < count($permissions) && !$finded; $i++ ) {
00036: $p = $permissions[$i];
00037: if ( $p['admin'] == true ) $finded = true;
00038: }
00039: }
00040: if(!Yii::app()->user->isGuest && !User::checkRole(User::ROLE_ADMIN) && $finded ) $this->widget('AdminMenu', array( 'full' => false ));
00041:
00042: ?>
00043:
00044: <?php
00045: $this->beginWidget('zii.widgets.CPortlet', array(
00046: 'title'=>'Operations',
00047: ));
00048: $this->widget('zii.widgets.CMenu', array(
Stack Trace
#0 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CBaseController.php(119): require()
#1 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CBaseController.php(88): SiteController->renderInternal()
#2 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CController.php(741): SiteController->renderFile()
#3 /usr1/web/vh/htcheck/htcheck-webmanager-1.0/protected/controllers/SiteController.php(110): SiteController->render()
#4 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/actions/CInlineAction.php(50): SiteController->actionIndex()
#5 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CController.php(300): CInlineAction->run()
#6 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CController.php(278): SiteController->runAction()
#7 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CController.php(257): SiteController->runActionWithFilters()
#8 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CWebApplication.php(324): SiteController->run()
#9 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/web/CWebApplication.php(121): CWebApplication->runController()
#10 /usr1/web/vh/htcheck/yii-1.1.4.r2429/framework/base/CApplication.php(135): CWebApplication->processRequest()
#11 /usr1/web/vh/htcheck/htcheck-webmanager-1.0/index.php(19): CWebApplication->run()
2010-10-14 16:10:59 Apache Yii Framework/1.1.4