Skip to content

Commit

Permalink
Fixed isssue #10654: Notice messages shown when disabling update
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 4, 2016
1 parent c82a3e4 commit ca40785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/core/Survey_Common_Action.php
Expand Up @@ -291,7 +291,7 @@ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $
{
///
$this->_fullpagebar($aData);
if (Yii::app()->getConfig('updatable')) $this->_updatenotification();
$this->_updatenotification();
$this->_notifications();
//// TODO : Move this div inside each correct view ASAP !
echo '
Expand Down Expand Up @@ -380,7 +380,7 @@ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $
*/
function _updatenotification()
{
if( !Yii::app()->user->isGuest )
if( !Yii::app()->user->isGuest && Yii::app()->getConfig('updatable'))
{
$updateModel = new UpdateForm();
$updateNotification = $updateModel->updateNotification;
Expand Down

0 comments on commit ca40785

Please sign in to comment.