Skip to content

Commit

Permalink
Merge branch '2.1' of github.com:LimeSurvey/LimeSurvey into 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Oct 18, 2012
2 parents 8c0dc91 + d351952 commit 0c5acee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/models/Survey_dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ class Survey_dynamic extends LSActiveRecord
public static function model($sid = NULL)
{
$refresh = false;
$sid = (int) $sid; // sanitize

if (!is_null($sid)) {
if (self::$sid <> $sid) { // did we change sid? then refresh
if (self::$sid !== $sid) { // did we change sid? then refresh
self::sid($sid);
$refresh = true;
}
Expand Down

0 comments on commit 0c5acee

Please sign in to comment.