Skip to content

Commit

Permalink
Dev: Only show update notification if dbversion > 259
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 31, 2017
1 parent 2a34e3a commit 3a8d858
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/core/Survey_Common_Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $
*/
function _updatenotification()
{
// Lower dbversionnumbers will not have the notifications table.
if (Yii::app()->getConfig('dbversionnumber') < 259) {
return;
}

if( !Yii::app()->user->isGuest && Yii::app()->getConfig('updatable'))
{
$updateModel = new UpdateForm();
Expand Down

0 comments on commit 3a8d858

Please sign in to comment.